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 +4 -4
- data/_includes/opengraph.html +1 -1
- data/_layouts/posts-tag.html +1 -1
- data/_layouts/posts-year.html +1 -1
- data/_layouts/posts.html +1 -1
- data/lib/jekyll-theme-amethyst.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 149f4387f6cb1af4610bf78d61fc768ae2ed050eb145edb3e731c0d96f499292
|
4
|
+
data.tar.gz: 3efbb5a5318d2fe65f89d8f25db5398ffe0d1c5adc5121af2131ed08b39413f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd625e247ad90c15fc53fda64ec01b5010f4af4cff390f94fefed06a2b6be3d8447fe16a2302791f7612638981e174c718643f25ae80fbdcc76665a67ae6e447
|
7
|
+
data.tar.gz: 80cdcc7f7fcf14bae42a2f446c4a16eb11d4719478785f80a61fadcda637800ecd2a60ef6bb58fabc5b7a82da222bda4998308dbbe54e9c01806fb62649a624d
|
data/_includes/opengraph.html
CHANGED
@@ -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[
|
56
|
+
<meta name="author" content="{{ site.data.authors[page.author] | default: page.author | escape }}">
|
57
57
|
{% endif %}
|
58
58
|
|
59
59
|
{% endcapture -%}
|
data/_layouts/posts-tag.html
CHANGED
@@ -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[
|
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-year.html
CHANGED
@@ -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[
|
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[
|
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"]
|
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",
|