jekyll-theme-mehdix-rtl 0.1.4 → 0.1.5

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: 8217de0ae0ad93c863fa2fadf03b0862b8f9ca45
4
- data.tar.gz: f5a1ae616ee73af8e6589a1806de9707c2038029
3
+ metadata.gz: 0633ea896d597edba0ef685472079595ab543900
4
+ data.tar.gz: 16de591ec6558d8a4facae7776ef59760108461b
5
5
  SHA512:
6
- metadata.gz: 34589484c573ebfd8ac8a14c4415112b297567a9338077b17a64260c3de2f18ef0b19b51e8e1b10086d14d4010d9afd693f402b7ce60222f8e2482baf689100b
7
- data.tar.gz: 9c762cd6460531501b968c37178ec04df11a34ecccaa44699d3946b15b3eee56fb9d32172f540183e6769e3553eac508b35431ada31923bb46b6f3e7978d4142
6
+ metadata.gz: b2b730187ba5a248bb5569cc4f95587f6ab707e602b2ad82aa39ae13409995d1fa24c578dcbe426e43bde0c5567d0e149db712507c3b5648b0794696872f1801
7
+ data.tar.gz: a1fef49cb658cc0fc1da231f1c0a5057a0c2aacf8b79091261ae199c60c075c77d8311bf3b90d584c137f62114c98096562c051cc02612c9dc54e8904b208ee3
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.
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.
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:
@@ -1,6 +1,3 @@
1
- <!-- An element a visitor can click if they <3 comments! -->
2
- <!--button class="show-comments">نمایش نظرات</button-->
3
-
4
1
  <!-- The empty element required for Disqus to loads comments into -->
5
2
  <div id="disqus_thread"></div>
6
3
 
@@ -1,6 +1,6 @@
1
1
  <script type="text/javascript">
2
2
  /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
3
- var disqus_shortname = 'mehdix'; // required: replace example with your forum shortname
3
+ var disqus_shortname = '{{ site.disqus_shortname }}'; // required: replace example with your forum shortname
4
4
 
5
5
  /* * * DON'T EDIT BELOW THIS LINE * * */
6
6
  (function () {
@@ -2,27 +2,6 @@
2
2
  <div class="wrapper">
3
3
  <a class="site-title" href="{{ '' | absolute_url}}">{{ site.title }}</a>
4
4
  <small> {{ site.motto }} </small>
5
- {% if site.pages.size > 3 -%}
6
- <!--nav class="site-nav">
7
- <a href="#" class="menu-icon">
8
- <svg viewBox="0 0 18 15">
9
- <path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
10
- <path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
11
- <path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
12
- </svg>
13
- </a>
14
- {% assign default_paths = site.pages | map: "path" %}
15
- {% assign page_paths = site.header_pages | default: default_paths %}
16
- <div class="trigger">
17
- {% for path in page_paths -%}
18
- {% assign my_page = site.pages | where: "path", path | first %}
19
- {%- if my_page.title -%}
20
- <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
21
- {%- endif -%}
22
- {% endfor %}
23
- </div>
24
- </nav>
25
- {%- endif %}
26
5
  </div-->
27
6
  </header>
28
7
 
@@ -1,4 +1,6 @@
1
- var disqus_shortname = 'mehdix';
1
+ ---
2
+ ---
3
+ var disqus_shortname = '{{site.disqus_shortname}}';
2
4
 
3
5
  var load_disqus = function () {
4
6
  var nodes = document.getElementsByTagName('span');
@@ -55,19 +57,3 @@ if ( !ds_loaded && ( window.scrollY || window.pageYOffset ) + window.innerHeight
55
57
  window.onscroll = function() { loadDisqus(); }
56
58
  }
57
59
 
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
- });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-mehdix-rtl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehdi Sadeghi