jekyll-theme-amethyst 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b821452b60270650a16031ce0c02143e94cc397e8c99dd661318398d59576497
4
- data.tar.gz: f23da2ecb2b942d07cdb71a96e2de9c30f3d2ad3506b4bc3ef1fa2548e59a04d
3
+ metadata.gz: 149f4387f6cb1af4610bf78d61fc768ae2ed050eb145edb3e731c0d96f499292
4
+ data.tar.gz: 3efbb5a5318d2fe65f89d8f25db5398ffe0d1c5adc5121af2131ed08b39413f1
5
5
  SHA512:
6
- metadata.gz: 7739a80aa0ad3174a480b5302b6d8510fc3c0d219dfcebb6cfe6d2ff958ee87e346972b97102c5bc1bf13cd89dea9ce6996fb65d84fa0c693a9e1ea64eb6f7d4
7
- data.tar.gz: 5cb9d1535f2899914db53358d579b846b233c0853d6210ac76f52c3c2844b38bd0d6b14791700740c5af5e049d814ee20aadf906b342ff7a15fbf71f5f52460b
6
+ metadata.gz: fd625e247ad90c15fc53fda64ec01b5010f4af4cff390f94fefed06a2b6be3d8447fe16a2302791f7612638981e174c718643f25ae80fbdcc76665a67ae6e447
7
+ data.tar.gz: 80cdcc7f7fcf14bae42a2f446c4a16eb11d4719478785f80a61fadcda637800ecd2a60ef6bb58fabc5b7a82da222bda4998308dbbe54e9c01806fb62649a624d
@@ -53,7 +53,7 @@
53
53
  {% if page.layout == "post" and page.date and page.author %}
54
54
  <meta property="og:type" content="article">
55
55
  <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
56
- <meta name="author" content="{{ site.data.authors[include.author] | default: include.author | escape }}">
56
+ <meta name="author" content="{{ site.data.authors[page.author] | default: page.author | escape }}">
57
57
  {% endif %}
58
58
 
59
59
  {% endcapture -%}
@@ -12,7 +12,7 @@ amethyst:
12
12
  {%- for post in posts -%}
13
13
  <div class="post-row">
14
14
  <h2><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h2>
15
- <p class="post-meta">Posted on <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format }}</time>{% if post.author %} by {{ site.data.authors[include.author] | default: include.author | escape }}{% endif %}</p>
15
+ <p class="post-meta">Posted on <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format }}</time>{% if post.author %} by {{ site.data.authors[post.author] | default: post.author | escape }}{% endif %}</p>
16
16
  <div class="post">
17
17
  {{- post.excerpt -}}
18
18
  {%- if post.excerpt != post.content %}
@@ -12,7 +12,7 @@ amethyst:
12
12
  {%- for post in posts -%}
13
13
  <div class="post-row">
14
14
  <h2><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h2>
15
- <p class="post-meta">Posted on <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format }}</time>{% if post.author %} by {{ site.data.authors[include.author] | default: include.author | escape }}{% endif %}</p>
15
+ <p class="post-meta">Posted on <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format }}</time>{% if post.author %} by {{ site.data.authors[post.author] | default: post.author | escape }}{% endif %}</p>
16
16
  <div class="post">
17
17
  {{- post.excerpt -}}
18
18
  {%- if post.excerpt != post.content %}
data/_layouts/posts.html CHANGED
@@ -13,7 +13,7 @@ amethyst:
13
13
  {% for post in posts -%}
14
14
  <div class="post-row">
15
15
  <h2><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h2>
16
- <p class="post-meta">Posted on <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format }}</time>{% if post.author %} by {{ site.data.authors[include.author] | default: include.author | escape }}{% endif %}</p>
16
+ <p class="post-meta">Posted on <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: date_format }}</time>{% if post.author %} by {{ site.data.authors[post.author] | default: post.author | escape }}{% endif %}</p>
17
17
  <div class="post">
18
18
  {{- post.excerpt -}}
19
19
  {%- if post.excerpt != post.content %}
@@ -58,7 +58,7 @@ module AmethystPlugin
58
58
  safe true
59
59
 
60
60
  def generate(site)
61
- site.data["authors"].each do |slug, name|
61
+ site.data["authors"]&.each do |slug, name|
62
62
  site.pages << AuthorPageWithoutAFile.new(site, site.source, 'author', "#{slug}.html").tap do |page|
63
63
  page.data.merge!(
64
64
  "layout" => "posts-author",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-amethyst
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Tijhof