Skip to content

Commit 3d6228c

Browse files
committed
Fix empty author due to include.author
Regression in v2.1.1 (9c25ef7), due to copy-paste left over from the old `authors-text.html` include where this was passed as include argument.
1 parent 1106248 commit 3d6228c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Amethyst theme
55

6-
This repository houses the Amethyst theme for Jekyll.
6+
This repository houses the Amethyst theme for [Jekyll](https://jekyllrb.com/).
77

88
## Getting started
99

_includes/opengraph.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
{% if page.layout == "post" and page.date and page.author %}
5454
<meta property="og:type" content="article">
5555
<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 }}">
5757
{% endif %}
5858

5959
{% endcapture -%}

_layouts/posts-tag.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1>Tag: {{ page.title | escape }}</h1>
1212
{%- for post in posts -%}
1313
<div class="post-row">
1414
<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>
1616
<div class="post">
1717
{{- post.excerpt -}}
1818
{%- if post.excerpt != post.content %}

_layouts/posts-year.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h1>Archive: {{ page.date | date: '%Y' }}</h1>
1212
{%- for post in posts -%}
1313
<div class="post-row">
1414
<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>
1616
<div class="post">
1717
{{- post.excerpt -}}
1818
{%- if post.excerpt != post.content %}

_layouts/posts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1>{{ page.title }}</h1>
1313
{% for post in posts -%}
1414
<div class="post-row">
1515
<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>
1717
<div class="post">
1818
{{- post.excerpt -}}
1919
{%- if post.excerpt != post.content %}

0 commit comments

Comments
 (0)