jekyll-theme-mehdix-rtl 3.2.0 → 4.0.0

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
  SHA256:
3
- metadata.gz: 8269a35e267301d63950febd4af29a595e3103fc9282a03122782eb83490bebd
4
- data.tar.gz: 641f36bf44f748a8fb80bfe83e17a519fc38b5a0da05d6d264ceddfe247e4d88
3
+ metadata.gz: 61b37001b5bebd04db8399ce4796a7130210ff0735eab56f3dc15b9dac1141f0
4
+ data.tar.gz: 68a4b14dbc6dedb5602c50e99e49103336d42bc9afcc319a0c0eff7366344f63
5
5
  SHA512:
6
- metadata.gz: a62488848eccf239f49a1a0e6da07560d3ecf2d2b75b0132845fce658af76d1997d929e7f00f928daeee6e53e9dcc5f2f30509e69cbb8c4d9b6d8e523ca3940d
7
- data.tar.gz: 0e2406ec07d768bcc6b50af0ab1b98726007a44b8a7d28aabbca65e671e7cf90ca98a9d81f684dbe023ab6b3604932547e76acb92f226330cbd056adb81c0518
6
+ metadata.gz: c0a1e19a9a9b3ef9770e11f38bad146ed5b2c3ab8e3d21cbc93e33bcd65b82dfca59aa0aab83f30af6ca163001674182d34ca8648cbd4b030484bb0158d86945
7
+ data.tar.gz: a77f1ec225c7f23f14d8cd8c9aaca4dacc880f9bb6b9e284575057dea1a338a249a4369fa0b3b99a5640414bbeb17ae6c8a3b658b7f826a662eb1f4904478fbc
@@ -11,7 +11,6 @@ baseurl:
11
11
 
12
12
  keywords: کامپیوتر برنامه‌نویسی وب
13
13
  copyright: "Commons Attribution 4.0 International"
14
- robot:
15
14
 
16
15
  # A one liner that describes your blog
17
16
  description: > # this means to ignore newlines
@@ -38,18 +37,16 @@ collections:
38
37
  projects:
39
38
  output: true
40
39
 
41
- # Set to `static` or `disqus`. Default is no comments.
42
- comment_system: static
43
-
40
+ # Set to `static` or `disqus`.
44
41
  comments:
45
42
  enabled: true
46
43
  type: static
47
44
  static:
48
45
  avatar:
49
46
  visible: true
50
-
51
- # Used if the `comment_system` is set to `disqus`
52
- #disqus_shortname:
47
+ disqus:
48
+ # Used if the `comment_system` is set to `disqus`
49
+ shortname: ''
53
50
 
54
51
  # Setting this will add the analytics snipped.
55
52
  #google_analytics_id:
@@ -79,12 +76,9 @@ exclude:
79
76
  - scripts
80
77
  - cache
81
78
  - .bundle
82
- - .sass-cache
83
79
  - reply-mail-hook
84
- - vendor
85
80
  - CONTRIBUTING.md
86
81
  - netlify.toml
87
- - wercker.yml
88
82
  - LICENSE
89
83
  - env.sh
90
84
  - screenshot.png
@@ -94,11 +88,11 @@ exclude:
94
88
  - jekyll-theme-mehdix-rtl.gemspec
95
89
  - rebuild_comments.py
96
90
  - README.md
97
- - Gemfile
98
- - Gemfile.lock
99
91
  - renovate.json
92
+ - '*.gem'
100
93
 
101
94
 
95
+ # Set default post layout
102
96
  defaults:
103
97
  -
104
98
  scope:
@@ -2,6 +2,6 @@
2
2
  <div id="disqus_thread"></div>
3
3
 
4
4
  <!--script src="//code.jquery.com/jquery-1.11.3.min.js"></script-->
5
- <script src="{{ 'assets/js/disqus.js' | absolute_url}}"></script>
5
+ <script src="{{ 'assets/js/disqus.js' | relative_url}}"></script>
6
6
 
7
7
  <noscript> Please enable JavaScript to view disqus comments. </noscript>
@@ -3,7 +3,7 @@
3
3
  <div class="wrapper">
4
4
 
5
5
  {% if site.config.logo %}
6
- <img id="footer-gravatar" src="{{ 'assets/img/me.png' | absolute_url }}" alt="">
6
+ <img id="footer-gravatar" src="{{ 'assets/img/me.png' | relative_url }}" alt="">
7
7
  {% endif %}
8
8
 
9
9
  <p id="footer-description">{{ site.long_description }}</p>
@@ -47,7 +47,7 @@
47
47
 
48
48
  <div id="footer-extra">
49
49
  {% include license.html %}
50
- <a id="atom" 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>
50
+ <a id="atom" href="https://validator.w3.org/feed/check.cgi?url={{ 'feed.xml' | absolute_url }}"><img src='{{ "assets/img/valid-atom.png" | absolute_url }}' alt="[Valid Atom 1.0]" title="Validate my Atom 1.0 feed" /></a>
51
51
  </div>
52
52
 
53
53
  </div>
@@ -6,7 +6,7 @@
6
6
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
7
7
  <meta name="description" content="{{ site.description | strip_newlines}}" />
8
8
 
9
- <link rel="canonical" href="{{ page.url | prepend: site.baseurl | absolute_url }}" />
10
- <link rel="icon" href="{{ site.favicon | absolute_url}}" />
11
- <link rel="stylesheet" href="{{ 'assets/css/main.css' | absolute_url }}" />
12
- <link rel="stylesheet" href="{{ 'assets/fonts/fontawesomev5.0.2.css' | absolute_url }}" />
9
+ <link rel="canonical" href="{{ page.url | absolute_url }}" />
10
+ <link rel="icon" href="{{ site.favicon | absolute_url }}" />
11
+ <link rel="stylesheet" href="{{ 'assets/css/main.css' | relative_url }}" />
12
+ <link rel="stylesheet" href="{{ 'assets/fonts/fontawesomev5.0.2.css' | relative_url }}" />
@@ -1,9 +1,9 @@
1
1
  <header>
2
2
  <div class="wrapper">
3
- <a class="site-title" href="{{ '/' | absolute_url}}">{{ site.title }}</a>
3
+ <a class="site-title" href="{{ '/' | relative_url}}">{{ site.title }}</a>
4
4
  <small id="motto"> {{ site.motto }} </small>
5
5
  {% if site.navbar %}
6
- <nav><a href="{{ 'projects' | absolute_url}}">برنامه‌ها</a></nav>
6
+ <nav><a href="{{ 'projects' | relative_url }}">برنامه‌ها</a></nav>
7
7
  {% endif %}
8
8
  </div>
9
9
  </header>
@@ -13,18 +13,19 @@
13
13
  {%- endif -%}
14
14
 
15
15
  {%- if page.title -%}
16
- <title>{{ page.title }} - {{ site.title}}</title>
16
+ <title>{{ page.title }} - {{ site.title}}</title>
17
+ <link hreflang="fa" rel=alternate type=application/atom+xml title="فید نظرات" href="{{ page.id | append:'.xml' | absolute_url }}">
17
18
  {%- else -%}
18
- <title>{{ site.title }}</title>
19
- {%- endif -%}
19
+ <title>{{ site.title }}</title>
20
+ {% endif %}
20
21
 
21
- <link hreflang="fa" rel=alternate type=application/atom+xml title="{{ site.title }}" href="{{ post.url | absolute_url }}/feed.xml">
22
+ <link hreflang="fa" rel=alternate type=application/atom+xml title="فید مقالات" href="{{ post.url | absolute_url }}/feed.xml">
22
23
 
23
- {%- if site.feedburner_id -%}
24
+ {% if site.feedburner_id %}
24
25
  <link hreflang="fa" rel=alternate type=application/atom+xml title="{{ site.title }}" href="https://feeds.feedburner.com/{{site.feedburner_id}}">
25
26
  {%- endif -%}
26
27
 
27
- {% seo %}
28
+ {% seo title=false %}
28
29
 
29
30
  </head>
30
31
 
@@ -32,7 +33,7 @@
32
33
 
33
34
  {{- content -}}
34
35
 
35
- <script src="{{ '/assets/js/main.js' | absolute_url }}"></script>
36
+ <script src="{{ '/assets/js/main.js' | relative_url }}"></script>
36
37
  {% if site.google_analytics_id %} {% include_cached analyticstracking.html %} {% endif %}
37
38
  </body>
38
39
  </html>
@@ -0,0 +1,3 @@
1
+ ---
2
+ layout: default
3
+ ---
@@ -0,0 +1,32 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <?xml-stylesheet type="text/xml" href="{{'feed_per_post.xsl' | absolute_url}}" ?>
3
+
4
+ <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa" >
5
+
6
+ <!--link rel="alternate" type="text/html" href="{{ site.url }}" hreflang="fa" /-->
7
+ <link rel="self" type="application/atom+xml" href="{{ site.url }}/{{page.post.id}}.xml" />
8
+
9
+ <id>{{ page.post.id | absolute_url | xml_escape }}</id>
10
+ <title type="text" xml:lang="fa">{{ page.post.title | xml_escape}}</title>
11
+ <updated>{{ page.time | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
12
+ <rights>{{ site.copyright | xml_escape}}</rights>
13
+
14
+ {% for comment in site.data.comments[page.post_key] %}
15
+ <entry>
16
+ <author>
17
+ <name>{{ comment.name | xml_escape}}</name>
18
+ <uri>{{ comment.website | xml_escape }}</uri>
19
+ </author>
20
+ <id>{{ comment.id }}</id>
21
+ <title></title>
22
+ <updated>{{ comment.created_at | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
23
+ <link rel="alternate" type="text/html" href="{{ page.url | absolute_url }}#{{ include.comment.id }}" />
24
+
25
+ <content type="html">
26
+ <![CDATA[<div dir="rtl">{{ comment.message }}</div>]]>
27
+ </content>
28
+
29
+ <summary>{{ comment.message | strip_html | truncatewords: 100 }}</summary>
30
+ </entry>
31
+ {% endfor %}
32
+ </feed>
@@ -6,7 +6,7 @@ layout: default
6
6
  {% for post in paginator.posts %}
7
7
  <li class="post-list-item">
8
8
  <!--span class="meta date">{{ post.date | jdate: "%A %d %b %Y" | habify }}</span-->
9
- <h2><a href="{{ post.url | absolute_url }}">{{ post.title }}</a></h2>
9
+ <h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
10
10
  {{ post.content | strip_html | truncatewords: 35 }}
11
11
  </li>
12
12
  {% endfor %}
@@ -17,21 +17,21 @@ layout: default
17
17
  <nav class="a-pagination">
18
18
  {% if paginator.previous_page %}
19
19
 
20
- <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"><i class="fas fa-forward"></i></a>
20
+ <a href="{{ paginator.previous_page_path | relative_url }}"><i class="fas fa-forward"></i></a>
21
21
  {% endif %}
22
22
 
23
23
  {% for page in (1..paginator.total_pages) %}
24
24
  {% if page == paginator.page %}
25
25
  <span class="is-active">{{ page | habify}}</span>
26
26
  {% elsif page == 1 %}
27
- <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ page | habify }}</a>
27
+ <a href="{{ paginator.previous_page_path | relative_url }}">{{ page | habify }}</a>
28
28
  {% else %}
29
- <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page | habify }}</a>
29
+ <a href="{{ site.paginate_path | replace: ':num', page | relative_url }}">{{ page | habify }}</a>
30
30
  {% endif %}
31
31
  {% endfor %}
32
32
 
33
33
  {% if paginator.next_page %}
34
- <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"><i class="fas fa-backward"></i></a>
34
+ <a href="{{ paginator.next_page_path | relative_url }}"><i class="fas fa-backward"></i></a>
35
35
  {% endif %}
36
36
  </nav>
37
37
 
@@ -47,22 +47,22 @@ layout: default
47
47
 
48
48
  <nav class="pagination">
49
49
  {% if page.next %}
50
- <a href="{{ page.next.url | absolute_url }}" class="pagination--pager" title="{{ page.next.title }}">قبلی</a>
50
+ <a href="{{ page.next.url | relative_url }}" class="pagination--pager" title="{{ page.next.title }}">قبلی</a>
51
51
  {% else %}
52
52
  <a href="#" class="pagination--pager disabled">قبلی</a>
53
53
  {% endif %}
54
54
 
55
55
  {% if page.previous %}
56
- <a href="{{ page.previous.url | absolute_url }}" class="pagination--pager" title="{{ page.previous.title }}">بعدی </a>
56
+ <a href="{{ page.previous.url | relative_url }}" class="pagination--pager" title="{{ page.previous.title }}">بعدی </a>
57
57
  {% else %}
58
58
  <a href="#" class="pagination--pager disabled">بعدی </a>
59
59
  {% endif %}
60
60
  </nav>
61
61
 
62
62
  <section>
63
- {% if site.comment_system == 'static' %}
63
+ {% if site.comments.type == 'static' %}
64
64
  {% include static_comments.html %}
65
- {% elsif site.comment_system == 'disqus' %}
65
+ {% elsif site.comments.type == 'disqus' %}
66
66
  {% include disqus.html %}
67
67
  {% endif %}
68
68
  </section>
@@ -10,7 +10,7 @@ robots: noindex
10
10
  <span class="post-meta list-meta-col">
11
11
  <span class="date">{{ post.date | jdate: "%A %d %b %Y" | habify }}</span>
12
12
  </span>
13
- <span><a href="{{ post.url | absolute_url }}">{{ post.title }}</a></span>
13
+ <span><a href="{{ post.url | relative_url }}">{{ post.title }}</a></span>
14
14
  </li>
15
15
  {% endfor %}
16
16
  </ul>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  ---
3
- var disqus_shortname = '{{site.disqus_shortname}}';
3
+ var disqus_shortname = '{{site.comments.disqus.shortname}}';
4
4
 
5
5
  if (typeof ds_loaded == "undefined") {
6
6
  var ds_loaded = false; //To track loading only once on a page.
@@ -0,0 +1,36 @@
1
+ ---
2
+ ---
3
+ <?xml version="1.0" encoding="UTF-8"?>
4
+ <xsl:stylesheet
5
+ version="1.0"
6
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7
+ xmlns:atom="http://www.w3.org/2005/Atom"
8
+ exclude-result-prefixes="atom">
9
+
10
+ <xsl:template match="/">
11
+ <html dir="rtl" xmlns="http://www.w3.org/1999/xhtml">
12
+ <body style="margin:auto;display:grid;width:540px;font-family:Arial;background-color:#EEEEEE;grid-gap:19px">
13
+ <h1><strong>دیدگاه‌های خوانندگان</strong></h1>
14
+ <xsl:apply-templates select="atom:feed/atom:entry"/>
15
+ <small>*اگه اینجا رو پیدا کردی واقعا باید بهت دست‌مریزاد گفت. تو عالی هستی!</small>
16
+ </body>
17
+ </html>
18
+ </xsl:template>
19
+
20
+ <xsl:template match="atom:entry">
21
+ <div xmlns="http://www.w3.org/1999/xhtml">
22
+ <div style="background-color:teal;color:white;padding:4px;">
23
+ <span style="font-weight:bold">
24
+ <strong><xsl:value-of select="atom:title"/></strong>
25
+ </span>
26
+ <xsl:text></xsl:text>
27
+ <xsl:value-of select="atom:author"/>
28
+ </div>
29
+ <div style="margin-right:20px;margin-bottom:1em;font-size:10pt">
30
+ <b><xsl:value-of select="atom:published"/></b>
31
+ <p><xsl:value-of select="atom:summary" disable-output-escaping="yes"/></p>
32
+ </div>
33
+ </div>
34
+ </xsl:template>
35
+
36
+ </xsl:stylesheet>
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: 3.2.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehdi Sadeghi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-27 00:00:00.000000000 Z
11
+ date: 2020-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -30,20 +30,6 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5.0'
33
- - !ruby/object:Gem::Dependency
34
- name: jekyll-feed
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '0.9'
40
- type: :runtime
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '0.9'
47
33
  - !ruby/object:Gem::Dependency
48
34
  name: jekyll-jalali
49
35
  requirement: !ruby/object:Gem::Requirement
@@ -190,7 +176,9 @@ files:
190
176
  - _includes/post-image.html
191
177
  - _includes/static_comments.html
192
178
  - _layouts/bare.html
179
+ - _layouts/category_index.html
193
180
  - _layouts/default.html
181
+ - _layouts/feed_per_post.xml
194
182
  - _layouts/home.html
195
183
  - _layouts/message.html
196
184
  - _layouts/minimal.html
@@ -236,6 +224,7 @@ files:
236
224
  - assets/webfonts/fa-solid-900.woff2
237
225
  - feed.xml
238
226
  - feed.xsl
227
+ - feed_per_post.xsl
239
228
  homepage: https://github.com/mehdisadeghi/jekyll-theme-mehdix-rtl
240
229
  licenses:
241
230
  - MIT
@@ -256,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
256
245
  - !ruby/object:Gem::Version
257
246
  version: '0'
258
247
  requirements: []
259
- rubygems_version: 3.0.6
248
+ rubygems_version: 3.1.2
260
249
  signing_key:
261
250
  specification_version: 4
262
251
  summary: A right-to-left theme for Jekyll with Jalali support and some other goodies.