Skip to content

Commit a790630

Browse files
committed
attempt to add co-authors
1 parent 90e1965 commit a790630

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

_layouts/post.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,20 @@ <h1>{{ page.title }}</h1>
88
{% if author %}
99
- <a href="{{ author.url }}">{{ author.name }}</a>
1010
{% endif %}
11-
</p>
11+
</p>
12+
13+
<p></p>
14+
{% if page.co-authors %}
15+
{% for co-author in page.co-authors %}
16+
{% if forloop.first %}
17+
co-authors: {{ co-author }}
18+
{% else %}
19+
,{{ co-author }}
20+
{% endif %}
21+
{% endfor %}
22+
{% endif %}
23+
</p>
24+
1225
<br>
1326

1427
{{ content }}

members.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ <h1>Members</h1>
66

77
<ul>
88
{% for author in site.authors %}
9-
<li>
10-
<h2><a href="{{ author.url }}">{{ author.name }}</a></h2>
11-
<h3>{{ author.position }}</h3>
12-
<p>{{ author.content | markdownify }}</p>
13-
</li>
9+
<li>
10+
<h2><a href="{{ author.url }}">{{ author.name }}</a></h2>
11+
<h3>{{ author.position }}</h3>
12+
<p>{{ author.content | markdownify }}</p>
13+
</li>
1414
{% endfor %}
15-
</ul>
15+
</ul>

0 commit comments

Comments
 (0)