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 +4 -4
- data/README.md +1 -1
- data/_includes/disqus.html +0 -3
- data/_includes/disqus_count.html +1 -1
- data/_includes/header.html +0 -21
- data/assets/js/disqus.js +3 -17
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0633ea896d597edba0ef685472079595ab543900
|
4
|
+
data.tar.gz: 16de591ec6558d8a4facae7776ef59760108461b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
data/_includes/disqus.html
CHANGED
data/_includes/disqus_count.html
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<script type="text/javascript">
|
2
2
|
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
3
|
-
var disqus_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 () {
|
data/_includes/header.html
CHANGED
@@ -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
|
|
data/assets/js/disqus.js
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
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
|
-
});
|