jekyll-theme-template 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +2 -0
- data/_layouts/default.html +6 -0
- data/_plugins/category_filter.rb +5 -1
- data/_plugins/tag_filter.rb +5 -1
- data/atom.xml +11 -5
- data/rss.xml +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1c73ccb3b6ea50b80edd476bd75518e62c486e68959ca912e517ee368952f80
|
4
|
+
data.tar.gz: 957b793f8914ad8d2a49bf3cc7b76e9a930f37e94d37399c78751b64360d499c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e39f693cdaede3628ec9f1cfdbbbbb1d6de62cf3991454486601ef4cd5fc468a493303dcd7755a6938065999bdfdcb2f63f137587412f5217404af1d747b061
|
7
|
+
data.tar.gz: c11394f6e44518ef31d3a23b259765d5233d3fe1ded4b65f65b4c76d6e516d3a944a71eee0697bd099f65c73697d2dcf4ef11057e61447803a909231835fcb41
|
data/_config.yml
CHANGED
data/_layouts/default.html
CHANGED
@@ -6,6 +6,12 @@
|
|
6
6
|
<title>{{ page.title | liquify }}</title>
|
7
7
|
<link href="{{ "/atom.xml" | relative_url }}" rel="alternate" type="application/atom+xml">
|
8
8
|
<link href="{{ "/rss.xml" | relative_url }}" rel="alternate" type="application/rss+xml">
|
9
|
+
{% if site.author %}
|
10
|
+
<meta name="author" content="{{ site.author }}">
|
11
|
+
{% endif %}
|
12
|
+
{% if site.description %}
|
13
|
+
<meta name="description" content="{{ site.description }}">
|
14
|
+
{% endif %}
|
9
15
|
</head>
|
10
16
|
<body>
|
11
17
|
{% include navigation.html %}
|
data/_plugins/category_filter.rb
CHANGED
@@ -2,7 +2,11 @@ module Jekyll
|
|
2
2
|
module CategoryFilter
|
3
3
|
def category_url(category)
|
4
4
|
site = @context.registers[:site]
|
5
|
-
|
5
|
+
if site.config['categories_dir']
|
6
|
+
"#{site.config['url']}/#{site.config['baseurl']}/#{site.config['categories_dir']}/#{category.tr(' ', '-')}/"
|
7
|
+
else
|
8
|
+
"#{site.config['url']}/#{site.config['baseurl']}/categories/#{category.tr(' ', '-')}/"
|
9
|
+
end
|
6
10
|
end
|
7
11
|
end
|
8
12
|
end
|
data/_plugins/tag_filter.rb
CHANGED
@@ -2,7 +2,11 @@ module Jekyll
|
|
2
2
|
module TagFilter
|
3
3
|
def tag_url(tag)
|
4
4
|
site = @context.registers[:site]
|
5
|
-
|
5
|
+
if site.config['tags_dir']
|
6
|
+
"#{site.config['url']}/#{site.config['baseurl']}/#{site.config['tags_dir']}/#{category.tr(' ', '-')}/"
|
7
|
+
else
|
8
|
+
"#{site.config['url']}/#{site.config['baseurl']}/tags/#{category.tr(' ', '-')}/"
|
9
|
+
end
|
6
10
|
end
|
7
11
|
end
|
8
12
|
end
|
data/atom.xml
CHANGED
@@ -2,12 +2,14 @@
|
|
2
2
|
---
|
3
3
|
<?xml version="1.0" encoding="utf-8"?>
|
4
4
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
5
|
-
<id>{{
|
6
|
-
<link href="{{
|
5
|
+
<id>{{ site.url }}</id>
|
6
|
+
<link href="{{ site.url }}"/>
|
7
7
|
<link href="{{ page.url | absolute_url }}" rel="self"/>
|
8
|
-
|
8
|
+
{% if site.copyright %}
|
9
|
+
<rights>{{ site.copyright }}</rights>
|
10
|
+
{% endif %}
|
9
11
|
<subtitle>{{ site.description }}</subtitle>
|
10
|
-
<title>{{ site.
|
12
|
+
<title>{{ site.title }}</title>
|
11
13
|
<updated>{{ site.posts.first.date | date_to_xmlschema }}</updated>
|
12
14
|
{% for post in site.posts %}
|
13
15
|
<entry>
|
@@ -24,7 +26,11 @@
|
|
24
26
|
<link href="{{ post.url | absolute_url }}"/>
|
25
27
|
<published>{{ post.date | date_to_xmlschema }}</published>
|
26
28
|
<title>{{ post.title }}</title>
|
27
|
-
|
29
|
+
{% if post.updated %}
|
30
|
+
<updated>{{ post.updated | date_to_xmlschema }}</updated>
|
31
|
+
{% else %}
|
32
|
+
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
33
|
+
{% endif %}
|
28
34
|
</entry>
|
29
35
|
{% endfor %}
|
30
36
|
</feed>
|
data/rss.xml
CHANGED
@@ -3,10 +3,12 @@
|
|
3
3
|
<?xml version="1.0" encoding="utf-8"?>
|
4
4
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
5
5
|
<channel>
|
6
|
-
<title>{{ site.
|
7
|
-
<link>{{
|
6
|
+
<title>{{ site.title }}</title>
|
7
|
+
<link>{{ site.url }}</link>
|
8
8
|
<description>{{ site.description }}</description>
|
9
|
-
|
9
|
+
{% if site.copyright %}
|
10
|
+
<copyright>{{ site.copyright }}</copyright>
|
11
|
+
{% endif %}
|
10
12
|
<pubDate>{{ site.posts.first.date | date_to_rfc822 }}</pubDate>
|
11
13
|
<lastBuildDate>{{ site.posts.first.date | date_to_rfc822 }}</lastBuildDate>
|
12
14
|
<atom:link href="{{ page.url | absolute_url }}" rel="self"/>
|
@@ -23,7 +25,7 @@
|
|
23
25
|
<comments>{{ post.url | absolute_url }}#disqus_thread</comments>
|
24
26
|
<guid>{{ post.url | absolute_url }}</guid>
|
25
27
|
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
26
|
-
<source url="{{ page.url | absolute_url }}">{{ site.
|
28
|
+
<source url="{{ page.url | absolute_url }}">{{ site.title }}</source>
|
27
29
|
</item>
|
28
30
|
{% endfor %}
|
29
31
|
</channel>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon de C Valle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|