jekyll-theme-mehdix-rtl 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +60 -0
- data/_includes/analyticstracking.html +10 -0
- data/_includes/credits.html +1 -0
- data/_includes/disqus.html +10 -0
- data/_includes/disqus_count.html +12 -0
- data/_includes/footer.html +75 -0
- data/_includes/head.html +31 -0
- data/_includes/header.html +32 -0
- data/_includes/license.html +6 -0
- data/_includes/post-image.html +4 -0
- data/_includes/support.html +3 -0
- data/_layouts/default.html +29 -0
- data/_layouts/home.html +17 -0
- data/_layouts/message.html +23 -0
- data/_layouts/page.html +14 -0
- data/_layouts/post.html +36 -0
- data/_layouts/project.html +18 -0
- data/_layouts/tag_page.html +25 -0
- data/_sass/_base.scss +204 -0
- data/_sass/_layout.scss +281 -0
- data/_sass/_print.scss +9 -0
- data/_sass/_ux-theme.scss +361 -0
- data/assets/css/main.scss +63 -0
- data/assets/img/background.gif +0 -0
- data/assets/img/favicon.png +0 -0
- data/assets/img/feed-icon-14x14.png +0 -0
- data/assets/img/feed_gray_50.png +0 -0
- data/assets/img/frontpage.png +0 -0
- data/assets/img/me.png +0 -0
- data/assets/img/noun_4018.png +0 -0
- data/assets/img/valid-atom.png +0 -0
- data/assets/js/disqus.js +73 -0
- data/assets/js/main.js +15 -0
- metadata +218 -0
data/assets/js/disqus.js
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
var disqus_shortname = 'mehdix';
|
2
|
+
|
3
|
+
var load_disqus = function () {
|
4
|
+
var nodes = document.getElementsByTagName('span');
|
5
|
+
for (var i = 0, url; i < nodes.length; i++) {
|
6
|
+
if (nodes[i].className.indexOf('dsq-postid') != -1) {
|
7
|
+
nodes[i].parentNode.setAttribute('data-disqus-identifier', nodes[i].getAttribute('data-dsqidentifier'));
|
8
|
+
url = nodes[i].parentNode.href.split('#', 1);
|
9
|
+
if (url.length == 1) { url = url[0]; }
|
10
|
+
else { url = url[1]; }
|
11
|
+
nodes[i].parentNode.href = url + '#disqus_thread';
|
12
|
+
}
|
13
|
+
}
|
14
|
+
var s = document.createElement('script');
|
15
|
+
s.async = true;
|
16
|
+
s.type = 'text/javascript';
|
17
|
+
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
|
18
|
+
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
19
|
+
};
|
20
|
+
|
21
|
+
|
22
|
+
if (typeof ds_loaded == "undefined") {
|
23
|
+
var ds_loaded = false; //To track loading only once on a page.
|
24
|
+
}
|
25
|
+
function loadDisqus() {
|
26
|
+
var disqus_div = document.getElementById("disqus_thread"); //The ID of the Disqus DIV tag
|
27
|
+
var top = disqus_div.offsetTop;
|
28
|
+
var disqus_data = disqus_div.dataset;
|
29
|
+
if ( !ds_loaded && ( window.scrollY || window.pageYOffset ) + window.innerHeight > top )
|
30
|
+
{
|
31
|
+
ds_loaded = true;
|
32
|
+
for (var key in disqus_data)
|
33
|
+
{
|
34
|
+
if (key.substr(0,6) == "disqus")
|
35
|
+
{
|
36
|
+
window["disqus_" + key.replace("disqus","").toLowerCase()] = disqus_data[key];
|
37
|
+
}
|
38
|
+
}
|
39
|
+
var dsq = document.createElement("script");
|
40
|
+
dsq.type = "text/javascript";
|
41
|
+
dsq.async = true;
|
42
|
+
dsq.src = "http://" + window.disqus_shortname + ".disqus.com/embed.js";
|
43
|
+
if(document.getElementById("dcl-hidden-div")) {
|
44
|
+
document.getElementById("dcl-hidden-div").innerHTML = "Loading...";
|
45
|
+
}
|
46
|
+
(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
var disqus_div_new = document.getElementById("disqus_thread");
|
51
|
+
var divExists = disqus_div_new != null;
|
52
|
+
if(document.body.scrollHeight < window.innerHeight){
|
53
|
+
loadDisqus();
|
54
|
+
} else if(divExists) {
|
55
|
+
window.onscroll = function() { loadDisqus(); }
|
56
|
+
}
|
57
|
+
|
58
|
+
// ***********************************
|
59
|
+
$(document).ready(function() {
|
60
|
+
$('.show-comments').on('click', function(){
|
61
|
+
var disqus_shortname = 'mehdix';
|
62
|
+
|
63
|
+
// ajax request to load the disqus javascript
|
64
|
+
$.ajax({
|
65
|
+
type: "GET",
|
66
|
+
url: "http://" + disqus_shortname + ".disqus.com/embed.js",
|
67
|
+
dataType: "script",
|
68
|
+
cache: true
|
69
|
+
});
|
70
|
+
// hide the button once comments load
|
71
|
+
$(this).fadeOut();
|
72
|
+
});
|
73
|
+
});
|
data/assets/js/main.js
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
// This file contains JavaScript code required to display some bits on http://mehdix.ir
|
2
|
+
|
3
|
+
// main.js
|
4
|
+
|
5
|
+
// Central global variable
|
6
|
+
var Mehdix = {};
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
// Get code tags and change their dir attribute to ltr.
|
11
|
+
// TODO: Find a solution to generate this during the build
|
12
|
+
var codeTags = document.getElementsByTagName('code');
|
13
|
+
for (var i = 0; i < codeTags.length; i++) {
|
14
|
+
codeTags[i].setAttribute('dir', 'ltr');
|
15
|
+
}
|
metadata
ADDED
@@ -0,0 +1,218 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-theme-mehdix-rtl
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mehdi Sadeghi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-08-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jekyll-default-layout
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jekyll-paginate
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.1'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jekyll-sitemap
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jekyll-jalali
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.1'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jekyll-markright
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.1'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: jekyll-hinduarabic
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.1'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.1'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: coderay
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.1'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.1'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: bundler
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '1.12'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.12'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '10.0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '10.0'
|
153
|
+
description:
|
154
|
+
email:
|
155
|
+
- mehdi@mehdix.org
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- LICENSE
|
161
|
+
- README.md
|
162
|
+
- _includes/analyticstracking.html
|
163
|
+
- _includes/credits.html
|
164
|
+
- _includes/disqus.html
|
165
|
+
- _includes/disqus_count.html
|
166
|
+
- _includes/footer.html
|
167
|
+
- _includes/head.html
|
168
|
+
- _includes/header.html
|
169
|
+
- _includes/license.html
|
170
|
+
- _includes/post-image.html
|
171
|
+
- _includes/support.html
|
172
|
+
- _layouts/default.html
|
173
|
+
- _layouts/home.html
|
174
|
+
- _layouts/message.html
|
175
|
+
- _layouts/page.html
|
176
|
+
- _layouts/post.html
|
177
|
+
- _layouts/project.html
|
178
|
+
- _layouts/tag_page.html
|
179
|
+
- _sass/_base.scss
|
180
|
+
- _sass/_layout.scss
|
181
|
+
- _sass/_print.scss
|
182
|
+
- _sass/_ux-theme.scss
|
183
|
+
- assets/css/main.scss
|
184
|
+
- assets/img/background.gif
|
185
|
+
- assets/img/favicon.png
|
186
|
+
- assets/img/feed-icon-14x14.png
|
187
|
+
- assets/img/feed_gray_50.png
|
188
|
+
- assets/img/frontpage.png
|
189
|
+
- assets/img/me.png
|
190
|
+
- assets/img/noun_4018.png
|
191
|
+
- assets/img/valid-atom.png
|
192
|
+
- assets/js/disqus.js
|
193
|
+
- assets/js/main.js
|
194
|
+
homepage: https://github.com/mehdisadeghi/jekyll-theme-mehdix-rtl
|
195
|
+
licenses:
|
196
|
+
- MIT
|
197
|
+
metadata: {}
|
198
|
+
post_install_message:
|
199
|
+
rdoc_options: []
|
200
|
+
require_paths:
|
201
|
+
- lib
|
202
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '0'
|
212
|
+
requirements: []
|
213
|
+
rubyforge_project:
|
214
|
+
rubygems_version: 2.6.11
|
215
|
+
signing_key:
|
216
|
+
specification_version: 4
|
217
|
+
summary: A right-to-left theme for Jekyll with Jalali support and some other goodies.
|
218
|
+
test_files: []
|