jekyll-theme-mehdix-rtl 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9320ef157a444fa1fa121ca21b676eb807a2411
4
- data.tar.gz: 1c883286cc18d93bb893ecaf1242ef74f9214d89
3
+ metadata.gz: c04ba855a2925eea69b646997b4a278dae880700
4
+ data.tar.gz: 79927f0ae37dd0e54c6ac4a56ef1a0646417998b
5
5
  SHA512:
6
- metadata.gz: dee09269d43b4f5fc312edea0112145a35a2893710b9e990ceb04d3f9f4ac3dd841f0c11945986748ba85fcf868a87cc368e8fd60698b6d8219f6af2f0416434
7
- data.tar.gz: ba5ebf0d341af634fa9035838e573bfc8823514931b880eabf318a6a744c3d5452f11a26218439fcbb71920a6237b14a2d428a3796681bee9fd8ab368eac9c00
6
+ metadata.gz: 990389d751e5d14f7e226217daf149037a1e68e57b5de3e9b79dfba3d8b9cef1ec61a0dbbfa07498e1da421e630fad8b76470aff615194932e67db1e34783d56
7
+ data.tar.gz: 79013c53c77b07bf10bea70d2bb9d3a6aea8e41636a41542ee867e521ddaed78b3779f99f6f4d1842647e12890ff990056a18aaaa7d934a59e8f32b8606cd81b
data/README.md CHANGED
@@ -47,7 +47,7 @@ The following layouts are available for your homepage:
47
47
  - minimal: only post titles
48
48
 
49
49
  ### Comments
50
- In order to enalbe disqus comments add `disqus: true` to your `_config.yml` file. Moreover, you have to set `disqus_shortname` to your disqus username.
50
+ In order to enalbe disqus comments add `disqus_shortname` to your `_config.yml` file and define your disqus username.
51
51
 
52
52
  ### Forcing RTL code blocks
53
53
  If you put code blocks and they appear incorrectly, you can use _Markright gem. First add it to your Gemfile:
@@ -62,6 +62,14 @@ And change your __config.yml_ respectively:
62
62
  markdown: Markright
63
63
  ```
64
64
 
65
+ ### Footer
66
+ If any of the following ids is present in the config a corresponding item will be added to the footer:
67
+
68
+ - github_username
69
+ - twitter_username
70
+ - feedburner_id
71
+ - email
72
+
65
73
  ### Analytics
66
74
  In order to send pageviews to Google Analytics set your ID in the `_config.yml`: `google_analytics_id: YOUR_ID`
67
75
 
@@ -4,13 +4,7 @@
4
4
  <div id="gravatar_container" class="footer-col footer-col-2">
5
5
  <img id="gravatar" class="circle" src="{{ 'assets/img/me.png' | absolute_url }}" alt="">
6
6
  </div>
7
- <!--div class="footer-col footer-col-1">
8
- <ul class="contact-list">
9
- <li>{{ site.title }}</li>
10
- <li><a href="mailto:{{ site.email }}"> تماس</a></li>
11
- </ul>
12
- </div-->
13
- <div id="footer_description" class="footer-col footer-col-3">
7
+ <div id="footer_description" class="footer-col footer-col-3">
14
8
  <p class="text">{{ site.long_description }}</p>
15
9
  </div>
16
10
  <div class="footer-col footer-col-2">
@@ -23,11 +17,11 @@
23
17
  <path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
24
18
  </svg>
25
19
  </span>
26
-
27
20
  <span class="username social-media-text">پروژه‌ها</span>
28
21
  </a>
29
22
  </li>
30
- {% endif %} {% if site.twitter_username %}
23
+ {% endif %}
24
+ {% if site.twitter_username %}
31
25
  <li>
32
26
  <a href="https://twitter.com/{{ site.twitter_username }}">
33
27
  <span class="icon icon--twitter">
@@ -36,24 +30,31 @@
36
30
  c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/>
37
31
  </svg>
38
32
  </span>
39
-
40
33
  <span class="username social-media-text">توئیت‌ها</span>
41
34
  </a>
42
35
  </li>
36
+ {% endif %}
37
+ {% if site.feedburner_id %}
43
38
  <li>
44
- <a href="https://feedburner.google.com/fb/a/mailverify?uri=mehdixir&amp;loc=en_US"><span class="icon icon--feed">
45
- <img src="{{ 'assets/img/feed_gray_50.png' | absolute_url}}" alt="" />
39
+ <a href="https://feedburner.google.com/fb/a/mailverify?uri={{ site.feedburner_id }}&amp;loc=en_US"><span class="icon icon--feed">
40
+ <img class='icon' src="{{ 'assets/img/feed_gray_50.png' | absolute_url}}" alt="" />
46
41
  </span><span class="username social-media-text">خبرنامه</span></a>
47
42
  </li>
48
43
  <li>
49
44
  <a href="http://feeds.feedburner.com/mehdixir"><span class="icon icon--feed">
50
- <img src="{{ 'assets/img/feed_gray_50.png' | absolute_url }}" alt=""/>
45
+ <img class='icon' src="{{ 'assets/img/feed_gray_50.png' | absolute_url }}" alt=""/>
51
46
  </span><span class="username social-media-text">خوراک</span></a>
52
47
  </li>
48
+ {% endif %}
49
+ {% if site.email %}
50
+ <li>
51
+ <a href="mailto:{{ site.email }}">
52
+ <img id='mail-icon' class='icon' src="{{ 'assets/img/envelope-open.svg' | absolute_url }}" alt=""/>
53
+ <span class="username social-media-text">تماس</span></a></li>
54
+ {% endif %}
53
55
  <li id="footer_build_status">
54
- <span class="icon"><a href="http://validator.w3.org/feed/check.cgi?url=http%3A//mehdix.ir/feed.xml"><img src={{ "assets/img/valid-atom.png" | absolute_url }} alt="[Valid Atom 1.0]" title="Validate my Atom 1.0 feed" /></a></span>
56
+ <span class="icon"><a href="https://validator.w3.org/feed/check.cgi?url={{ '' | absolute_url | append:'feed.xml'}}"><img src={{ "assets/img/valid-atom.png" | absolute_url }} alt="[Valid Atom 1.0]" title="Validate my Atom 1.0 feed" /></a></span>
55
57
  </li>
56
- {% endif %}
57
58
  </ul>
58
59
  </div>
59
60
  </div>
data/_layouts/post.html CHANGED
@@ -33,7 +33,7 @@ layout: default
33
33
  </p>
34
34
  </div>
35
35
 
36
- {% if site.disqus %}
36
+ {% if site.disqus_shortname %}
37
37
  {% include disqus.html %}
38
38
  {% endif %}
39
39
 
data/_sass/_layout.scss CHANGED
@@ -136,6 +136,14 @@ html, body {
136
136
  margin-left: 0;
137
137
  }
138
138
 
139
+ .social-media-list .icon {
140
+ width: 1em;
141
+ }
142
+
143
+ #mail-icon {
144
+ filter: invert(100);
145
+ }
146
+
139
147
  .footer-col-wrapper {
140
148
  font-size: 15px;
141
149
  color: $grey-color;
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8">
2
+ <path d="M4 0l-4 2v6h8v-6l-4-2zm0 1.13l3 1.5v1.88l-3 1.5-3-1.5v-1.88l3-1.5zm-2 1.88v1l2 1 2-1v-1h-4z" />
3
+ </svg>
data/assets/js/disqus.js CHANGED
@@ -2,58 +2,39 @@
2
2
  ---
3
3
  var disqus_shortname = '{{site.disqus_shortname}}';
4
4
 
5
- var load_disqus = function () {
6
- var nodes = document.getElementsByTagName('span');
7
- for (var i = 0, url; i < nodes.length; i++) {
8
- if (nodes[i].className.indexOf('dsq-postid') != -1) {
9
- nodes[i].parentNode.setAttribute('data-disqus-identifier', nodes[i].getAttribute('data-dsqidentifier'));
10
- url = nodes[i].parentNode.href.split('#', 1);
11
- if (url.length == 1) { url = url[0]; }
12
- else { url = url[1]; }
13
- nodes[i].parentNode.href = url + '#disqus_thread';
14
- }
15
- }
16
- var s = document.createElement('script');
17
- s.async = true;
18
- s.type = 'text/javascript';
19
- s.src = '//' + disqus_shortname + '.disqus.com/count.js';
20
- (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
21
- };
22
-
23
-
24
5
  if (typeof ds_loaded == "undefined") {
25
- var ds_loaded = false; //To track loading only once on a page.
26
- }
6
+ var ds_loaded = false; //To track loading only once on a page.
7
+ }
8
+
27
9
  function loadDisqus() {
28
- var disqus_div = document.getElementById("disqus_thread"); //The ID of the Disqus DIV tag
29
- var top = disqus_div.offsetTop;
30
- var disqus_data = disqus_div.dataset;
31
- if ( !ds_loaded && ( window.scrollY || window.pageYOffset ) + window.innerHeight > top )
32
- {
33
- ds_loaded = true;
34
- for (var key in disqus_data)
35
- {
36
- if (key.substr(0,6) == "disqus")
37
- {
38
- window["disqus_" + key.replace("disqus","").toLowerCase()] = disqus_data[key];
10
+ var disqus_div = document.getElementById("disqus_thread"); //The ID of the Disqus DIV tag
11
+ var top = disqus_div.offsetTop;
12
+ var disqus_data = disqus_div.dataset;
13
+ if (!ds_loaded && (window.scrollY || window.pageYOffset) + window.innerHeight > top) {
14
+ ds_loaded = true;
15
+ for (var key in disqus_data) {
16
+ if (key.substr(0, 6) == "disqus") {
17
+ window["disqus_" + key.replace("disqus", "").toLowerCase()] = disqus_data[key];
18
+ }
19
+ }
20
+ var dsq = document.createElement("script");
21
+ dsq.type = "text/javascript";
22
+ dsq.async = true;
23
+ dsq.src = "https://" + window.disqus_shortname + ".disqus.com/embed.js";
24
+ if (document.getElementById("dcl-hidden-div")) {
25
+ document.getElementById("dcl-hidden-div").innerHTML = "Loading...";
26
+ }
27
+ (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq);
39
28
  }
40
- }
41
- var dsq = document.createElement("script");
42
- dsq.type = "text/javascript";
43
- dsq.async = true;
44
- dsq.src = "http://" + window.disqus_shortname + ".disqus.com/embed.js";
45
- if(document.getElementById("dcl-hidden-div")) {
46
- document.getElementById("dcl-hidden-div").innerHTML = "Loading...";
47
- }
48
- (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq);
49
- }
50
29
  }
51
30
 
52
- var disqus_div_new = document.getElementById("disqus_thread");
53
- var divExists = disqus_div_new != null;
54
- if(document.body.scrollHeight < window.innerHeight){
55
- loadDisqus();
56
- } else if(divExists) {
57
- window.onscroll = function() { loadDisqus(); }
58
- }
31
+ var disqus_div_new = document.getElementById("disqus_thread");
32
+ var divExists = disqus_div_new != null;
59
33
 
34
+ if (document.body.scrollHeight < window.innerHeight) {
35
+ loadDisqus();
36
+ } else if (divExists) {
37
+ window.onscroll = function() {
38
+ loadDisqus();
39
+ }
40
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-mehdix-rtl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehdi Sadeghi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-10 00:00:00.000000000 Z
11
+ date: 2017-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -152,6 +152,7 @@ files:
152
152
  - assets/css/main.scss
153
153
  - assets/css/pygments.css
154
154
  - assets/img/background.gif
155
+ - assets/img/envelope-open.svg
155
156
  - assets/img/favicon.png
156
157
  - assets/img/feed-icon-14x14.png
157
158
  - assets/img/feed_gray_50.png