jekyll-theme-template 0.0.2 → 0.0.8

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: a4fad100cb3e80bf33a86d6e56453ba5b5757280369976f89908cb2693ca2367
4
- data.tar.gz: 5f17099e9d7534b33d3c532ad979004a55923738d7549c81c1a854c12e8612f1
3
+ metadata.gz: 7114ba129efee066b3bfa96269a598f0768f5aabfa4dd557e598f88eab939878
4
+ data.tar.gz: a66a4b07cd015b09c2c512a9e512faeecc89bcbc153e9b7fe4b1c3cee57b3a55
5
5
  SHA512:
6
- metadata.gz: 3f7ba388e136f33a5c40213fea32543dc70570c4207eb4d7949880ca3ae7daa980b8bff541a2a65b074deb2116819c5dad2c49d0532244a558f62bafa20c430e
7
- data.tar.gz: 905e354115ff40733f975cd116a1ec7954df891a722623203b4a8c1a529acc037a5abc99fff6e627d174ac458931352db85dbb33f875c50108ef3c4255543ce1
6
+ metadata.gz: 24538de4758d6099e371442c905ccb631b2643bb2302df71584b453dd23b83454652252cef05b6a467e4d7f5cda580d923ae9815ca529f28f0827e711b98489a
7
+ data.tar.gz: c98dad85762ae3d1a1addf8420daffd5fcc882cebeb1ae603f8c840bfffa153d4b0ad347b433e02dd4463bf5bee42d5e740697f945d94b419591ae107205011b
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  jekyll-theme-template
2
2
  =====================
3
3
 
4
- [![Build Status](https://travis-ci.org/rcvalle/jekyll-theme-template.svg?branch=master)](https://travis-ci.org/rcvalle/jekyll-theme-template)
4
+ ![Build Status](https://github.com/rcvalle/jekyll-theme-template/workflows/build/badge.svg)
5
5
 
6
6
  A Jekyll theme template.
7
7
 
@@ -73,5 +73,5 @@ See [CONTRIBUTING.md](CONTRIBUTING.md).
73
73
  License
74
74
  -------
75
75
 
76
- Licensed under the MIT license. See [LICENSE](LICENSE) for license text and
76
+ Licensed under the MIT License. See [LICENSE](LICENSE) for license text and
77
77
  copyright information.
data/_config.yml CHANGED
@@ -1,4 +1,7 @@
1
+ author: Ramon de C Valle
1
2
  baseurl: /jekyll-theme-template
3
+ description: A Jekyll theme template.
4
+ excerpts: true
2
5
  exclude:
3
6
  - "*.gemspec"
4
7
  - "CONTRIBUTING*"
@@ -9,3 +9,14 @@
9
9
  ga('send', 'pageview');
10
10
  </script>
11
11
  {% endif %}
12
+ {% if site.gtag %}
13
+ <!-- Global site tag (gtag.js) - Google Analytics -->
14
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.gtag }}"></script>
15
+ <script>
16
+ window.dataLayer = window.dataLayer || [];
17
+ function gtag(){dataLayer.push(arguments);}
18
+ gtag('js', new Date());
19
+
20
+ gtag('config', '{{ site.gtag }}');
21
+ </script>
22
+ {% endif %}
@@ -1,11 +1,10 @@
1
1
  {% if site.disqus_shortname %}
2
2
  <div id="disqus_thread"></div>
3
- <script>
3
+ <script crossorigin="anonymous">
4
4
  var disqus_config = function () {
5
5
  this.page.url = '{{ page.url | absolute_url }}';
6
6
  this.page.identifier = '{{ page.url | relative_url }}';
7
7
  this.page.title = '{{ page.title }}';
8
- this.page.category_id = '{{ page.categories.first | capitalize }}';
9
8
  };
10
9
  (function() {
11
10
  var d = document, s = d.createElement('script');
data/_includes/post.html CHANGED
@@ -1,8 +1,13 @@
1
1
  <article itemscope itemtype="http://schema.org/BlogPosting">
2
2
  <h1 itemprop="headline"><a href="{{ include.post.url | relative_url }}">{{ include.post.title }}</a></h1>
3
- <p>{% if include.post.author %}By <span itemprop="author">{{ include.post.author }}</span> on {% endif %}<time itemprop="datePublished" datetime="{{ include.post.date | date_to_xmlschema }}">{{ include.post.date | date: "%B %-d, %Y" }}</time>{% if include.post.comments %}. <a href="{{ include.post.url | relative_url }}#disqus_thread" data-disqus-identifier="{{ include.post.url | relative_url }}"></a>{% endif %}</p>
3
+ <p itemprop="description">{% if include.post.author %}By <span itemprop="author">{{ include.post.author }}</span> on {% endif %}<time itemprop="datePublished" datetime="{{ include.post.date | date_to_xmlschema }}">{{ include.post.date | date: "%B %-d, %Y" }}</time>{% if include.post.updated %}. Last updated on <time itemprop="dateModified" datetime="{{ include.post.updated | date_to_xmlschema }}">{{ include.post.updated | date: "%B %-d, %Y" }}</time>{% endif %}{% if include.post.comments %}. <a href="{{ include.post.url | relative_url }}#disqus_thread" data-disqus-identifier="{{ include.post.url | relative_url }}"></a>{% endif %}</p>
4
4
  <div itemprop="articleBody">
5
- {{ include.post.content | markdownify }}
5
+ {% if page.type == "home" and site.excerpts %}
6
+ {{ include.post.excerpt | markdownify }}
7
+ <p><a href="{{ post.url }}">Read more&hellip;</a></p>
8
+ {% else %}
9
+ {{ include.post.content | markdownify }}
10
+ {% endif %}
6
11
  </div>
7
12
  <p>{% include post_tags.html post=include.post %}</p>
8
13
  </article>
@@ -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 %}
@@ -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.gsub(/\/\/+/).with_index { |_, i| i.zero? ? '//' : '/' }
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']}/#{tag.tr(' ', '-')}/"
7
+ else
8
+ "#{site.config['url']}/#{site.config['baseurl']}/tags/#{tag.tr(' ', '-')}/"
9
+ end.gsub(/\/\/+/).with_index { |_, i| i.zero? ? '//' : '/' }
6
10
  end
7
11
  end
8
12
  end
data/atom.xml CHANGED
@@ -3,11 +3,13 @@
3
3
  <?xml version="1.0" encoding="utf-8"?>
4
4
  <feed xmlns="http://www.w3.org/2005/Atom">
5
5
  <id>{{ "/" | absolute_url }}</id>
6
- <link href="{{ "/" | absolute_url }}"/>
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-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.8
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: 2020-09-23 00:00:00.000000000 Z
11
+ date: 2021-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -131,14 +131,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
131
  requirements:
132
132
  - - ">="
133
133
  - !ruby/object:Gem::Version
134
- version: '0'
134
+ version: 2.3.0
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements: []
141
- rubygems_version: 3.0.8
141
+ rubygems_version: 3.0.3
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: A Jekyll theme template.