Skip to content

Commit 6a3faa1

Browse files
committed
Remove 'written by' line in favor of 'edited by' annotation
We now autogenerate the rust-osdev entries and the entries for other projects already mention the respective authors.
1 parent b5e5573 commit 6a3faa1

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

content/this-month/2022-07/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ date = 2022-08-10
44

55
[extra]
66
month = "July 2022"
7-
authors = [
7+
editors = [
88
"phil-opp",
9-
"ColinFinck",
109
# add yourself here
1110
]
1211
+++

templates/page.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,32 @@
55
{% block main %}
66
<h1>{{ page.title | safe}}</h1>
77

8-
<span class="post-authors post-date">Written by
8+
<span class="post-authors post-date">
9+
{%- if page.extra.authors -%}
10+
Written by
911
{% for author in page.extra.authors -%}
1012
{%- if not loop.first -%}
1113
{%- if loop.last %}{% if loop.index0 > 1 %}, and {% else %} and {% endif %}{% else %}, {% endif -%}
1214
{%- endif -%}
1315
<a href="https://github.com/{{ author }}">@{{ author }}</a>
1416
{%- endfor %}
17+
<br>
18+
{%- endif -%}
1519

16-
<br>Published on <time datetime="{{ page.date | date(format="%Y-%m-%d") }}">
20+
Published on <time datetime="{{ page.date | date(format="%Y-%m-%d") }}">
1721
{{ page.date | date(format="%b %d, %Y") }}
1822
{% if page.extra.updated %} (updated on {{ page.extra.updated | date(format="%b %d, %Y") }}) {% endif %}
1923
</time>
24+
{%- if page.extra.editors -%}
25+
(edited by
26+
{% for author in page.extra.editors -%}
27+
{%- if not loop.first -%}
28+
{%- if loop.last %}{% if loop.index0 > 1 %}, and {% else %} and {% endif %}{% else %}, {% endif -%}
29+
{%- endif -%}
30+
<a href="https://github.com/{{ author }}">@{{ author }}</a>
31+
{%- endfor -%}
32+
)
33+
{%- endif -%}
2034
</span>
2135

2236
{{ page.content | safe }}

0 commit comments

Comments
 (0)