jekyll-theme-mehdix-rtl 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/feed.xml +40 -0
  3. data/feed.xsl +36 -0
  4. metadata +38 -37
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bff277365cf34f1e3f1b5ee53d1aaec6bf7d65a78f3bb2868c3c8b09bf79c075
4
- data.tar.gz: 9ee9f99ad6e4c088542e6e109645d559adeffd53f8084443869a88c873d38896
3
+ metadata.gz: 463c1830b1fa3edeb4ec7ee5c9c54e0ec5f58346ae472029c1238b107a690a88
4
+ data.tar.gz: d185adccf990bc1be1a22f48e206bd05700a9b243d2208606d87d597a36cf92a
5
5
  SHA512:
6
- metadata.gz: a99490a6064b07ccb6b5533e87c532955b4d07409ee72e77826dfae4b8a6cbb1e6b7c609da7a66b34a6a1194f16c0bb0076547543a84752e4cd5337d89f23bd3
7
- data.tar.gz: 1ca35d5692e37aaaa900c50c42e2bd34a26b84f5035b9de1b944f64b809e6cf93d557cb8c9ab191c4b7a8cf34e614f35c7727972d536cc26d11dc14f0e986d61
6
+ metadata.gz: 394f5ae9da1b39ca52a50428d770463c041db99605d2663657f0b7d54926b949cb823a307606eccb96d3a1d0eb5abb340021fdb8c83a1a5c5767ab6ade8973da
7
+ data.tar.gz: df168986eefcf47e8326af8131a3a1815b62ebbf766e707aa49dec5c06a66f6c41e12a56040c35f6d03565e240f09b3a228c0b026cdd1e37c3483ae596d49859
data/feed.xml ADDED
@@ -0,0 +1,40 @@
1
+ ---
2
+ ---
3
+ <?xml version="1.0" encoding="UTF-8"?>
4
+ <?xml-stylesheet type="text/xml" href="{{'feed.xsl' | absolute_url}}" ?>
5
+
6
+ <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa" >
7
+
8
+ <link rel="alternate" type="text/html" href="{{ site.url }}" hreflang="fa" />
9
+ <link rel="self" type="application/atom+xml" href="{{ site.url }}/feed.xml" />
10
+
11
+ <id>{% if site.atom_feed_id %}{{ site.atom_feed_id }}{% else %}{{ '/' | absolute_url | xml_escape }}{% endif %}</id>
12
+ <title type="text" xml:lang="fa">{{ site.title | xml_escape}}</title>
13
+ <updated>{{ site.time | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
14
+ <rights>{{ site.copyright | xml_escape}}</rights>
15
+
16
+ <author>
17
+ <name>{{ site.author | xml_escape}}</name>
18
+ <email>{{ site.email | xml_escape}}</email>
19
+ <uri>{{ site.url | xml_escape }}</uri>
20
+ </author>
21
+
22
+ {% for post in site.posts limit: 20 %}
23
+ <entry>
24
+ {% if post.uuid %}
25
+ <id>urn:uuid:{{ post.uuid }}</id>
26
+ {% else %}
27
+ <id>{{ post.url | absolute_url | xml_escape }}</id>
28
+ {% endif %}
29
+ <title>{{ post.title | xml_escape}}</title>
30
+ <updated>{{ post.date | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
31
+ <link rel="alternate" type="text/html" href="{{ post.url | absolute_url }}"/>
32
+ {% for tag in post.tags %}<category term="{{ tag }}"/>{% endfor %}
33
+ <content type="html">
34
+ <![CDATA[<div dir="rtl">{{ post.content }}</div>]]>
35
+ </content>
36
+ <summary>{{ post.content | strip_html | truncatewords: 100 }}</summary>
37
+ </entry>
38
+ {% endfor %}
39
+
40
+ </feed>
data/feed.xsl ADDED
@@ -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,29 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-mehdix-rtl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
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-08-26 00:00:00.000000000 Z
11
+ date: 2019-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.5'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3.5'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: jekyll-feed
15
35
  requirement: !ruby/object:Gem::Requirement
16
36
  requirements:
17
37
  - - "~>"
18
38
  - !ruby/object:Gem::Version
19
- version: '3.3'
39
+ version: '0.9'
20
40
  type: :runtime
21
41
  prerelease: false
22
42
  version_requirements: !ruby/object:Gem::Requirement
23
43
  requirements:
24
44
  - - "~>"
25
45
  - !ruby/object:Gem::Version
26
- version: '3.3'
46
+ version: '0.9'
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: jekyll-jalali
29
49
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +134,14 @@ dependencies:
114
134
  requirements:
115
135
  - - "~>"
116
136
  - !ruby/object:Gem::Version
117
- version: '0.1'
137
+ version: '1.0'
118
138
  type: :runtime
119
139
  prerelease: false
120
140
  version_requirements: !ruby/object:Gem::Requirement
121
141
  requirements:
122
142
  - - "~>"
123
143
  - !ruby/object:Gem::Version
124
- version: '0.1'
144
+ version: '1.0'
125
145
  - !ruby/object:Gem::Dependency
126
146
  name: jekyll-include-cache
127
147
  requirement: !ruby/object:Gem::Requirement
@@ -136,20 +156,6 @@ dependencies:
136
156
  - - "~>"
137
157
  - !ruby/object:Gem::Version
138
158
  version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: jekyll-tagging-related_posts
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '1.0'
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '1.0'
153
159
  - !ruby/object:Gem::Dependency
154
160
  name: liquid_reading_time
155
161
  requirement: !ruby/object:Gem::Requirement
@@ -170,28 +176,20 @@ dependencies:
170
176
  requirements:
171
177
  - - "~>"
172
178
  - !ruby/object:Gem::Version
173
- version: '2'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
+ version: '1.6'
180
+ - - "<"
179
181
  - !ruby/object:Gem::Version
180
- version: '2'
181
- - !ruby/object:Gem::Dependency
182
- name: rake
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '12'
182
+ version: '3.0'
188
183
  type: :development
189
184
  prerelease: false
190
185
  version_requirements: !ruby/object:Gem::Requirement
191
186
  requirements:
192
187
  - - "~>"
193
188
  - !ruby/object:Gem::Version
194
- version: '12'
189
+ version: '1.6'
190
+ - - "<"
191
+ - !ruby/object:Gem::Version
192
+ version: '3.0'
195
193
  description:
196
194
  email:
197
195
  - mehdi@mehdix.org
@@ -253,10 +251,13 @@ files:
253
251
  - assets/webfonts/fa-solid-900.ttf
254
252
  - assets/webfonts/fa-solid-900.woff
255
253
  - assets/webfonts/fa-solid-900.woff2
254
+ - feed.xml
255
+ - feed.xsl
256
256
  homepage: https://github.com/mehdisadeghi/jekyll-theme-mehdix-rtl
257
257
  licenses:
258
258
  - MIT
259
- metadata: {}
259
+ metadata:
260
+ plugin_type: theme
260
261
  post_install_message:
261
262
  rdoc_options: []
262
263
  require_paths:
@@ -272,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
273
  - !ruby/object:Gem::Version
273
274
  version: '0'
274
275
  requirements: []
275
- rubygems_version: 3.0.4
276
+ rubygems_version: 3.0.6
276
277
  signing_key:
277
278
  specification_version: 4
278
279
  summary: A right-to-left theme for Jekyll with Jalali support and some other goodies.