jekyll-theme-bootstrap4 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 549c5da63092e5c3ebfaec2cccd24321b91b8307acc1cb108bd581304774908d
4
- data.tar.gz: 11a7f1c94a395bde7153d1c05fdc550b401894591b707ee58592bfa29bbe009f
3
+ metadata.gz: dd4fc00c1aae95c6a37d3c6d429a26157dc1c3854176c8cc6dd653ee14437f27
4
+ data.tar.gz: 693bc41c6c1f708d8d94d08698a72e60ab2fc34adfb8e17e53ea25ac600127e9
5
5
  SHA512:
6
- metadata.gz: 5b16419f64608bc6949fff3ec26cd4623fa8b6cfe44ef3247e2721f56939af5bdbd8ebfd8122e632383ed4da86e7378d93e0b6526f0b66dd14b271e973edae69
7
- data.tar.gz: 655d789e22d12d3ad793ec0ba159bcac3b2c817ca4d42f56b482b4c38a70613d98a8057ba9e076eec6d0d6ebd0a8eeaf8423273ec94b9a8da985cbff65bf40b5
6
+ metadata.gz: 7699a37c7268c3f7affce0717ea29734e74c843afde9c3a42186e57347224fc2a52036858316f30031013104cf052ee22ecc50f5863dcc77faf969c5b098ab43
7
+ data.tar.gz: 7a86ecb5ad30bdcc5bab54d102c074122b89a22f4ee65ce55b4631b3e42f82389b3c16fe3308e0c2c1dc0f10b135fb514908f6d9359a68a6b74bc217e03b58a5
data/_config.yml CHANGED
@@ -1,4 +1,6 @@
1
+ author: Ramon de C Valle
1
2
  baseurl: /jekyll-theme-bootstrap4
3
+ description: A Bootstrap-based Jekyll theme.
2
4
  excerpts: true
3
5
  exclude:
4
6
  - "*.gemspec"
@@ -55,6 +55,12 @@
55
55
  border-color: var(--color-gray-300);
56
56
  }
57
57
  </style>
58
+ {% if site.author %}
59
+ <meta name="author" content="{{ site.author }}">
60
+ {% endif %}
61
+ {% if site.description %}
62
+ <meta name="description" content="{{ site.description }}">
63
+ {% endif %}
58
64
  </head>
59
65
  <body>
60
66
  {% include navigation.html %}
@@ -2,7 +2,11 @@ module Jekyll
2
2
  module CategoryFilter
3
3
  def category_url(category)
4
4
  site = @context.registers[:site]
5
- site.config['categories_dir'] ? "#{site.config['baseurl']}/#{site.config['categories_dir']}/#{category.tr(' ', '-')}/" : "#{site.config['baseurl']}/categories/#{category.tr(' ', '-')}/"
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
@@ -2,7 +2,11 @@ module Jekyll
2
2
  module TagFilter
3
3
  def tag_url(tag)
4
4
  site = @context.registers[:site]
5
- site.config['tags_dir'] ? "#{site.config['baseurl']}/#{site.config['tags_dir']}/#{tag.tr(' ', '-')}/" : "#{site.config['baseurl']}/tags/#{tag.tr(' ', '-')}/"
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>{{ "/" | absolute_url }}</id>
6
- <link href="{{ "/" | absolute_url }}"/>
5
+ <id>{{ site.url }}</id>
6
+ <link href="{{ site.url }}"/>
7
7
  <link href="{{ page.url | absolute_url }}" rel="self"/>
8
- <rights>{{ site.copyright }}</rights>
8
+ {% if site.copyright %}
9
+ <rights>{{ site.copyright }}</rights>
10
+ {% endif %}
9
11
  <subtitle>{{ site.description }}</subtitle>
10
- <title>{{ site.name }}</title>
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
- <updated>{{ post.date | date_to_xmlschema }}</updated>
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.name }}</title>
7
- <link>{{ "/" | absolute_url }}</link>
6
+ <title>{{ site.title }}</title>
7
+ <link>{{ site.url }}</link>
8
8
  <description>{{ site.description }}</description>
9
- <copyright>{{ site.copyright }}</copyright>
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.name }}</source>
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-bootstrap4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
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-01-21 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler