Skip to content

Commit 3b25580

Browse files
committed
change author name to link. creativecommons#53
1 parent 711513e commit 3b25580

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

templates/blog-post.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
{% block header %}{{ this.parent.title }}{% endblock %}
44
{% block body %}
55
<h2 class="mb-0">{{ this.title }}</h2>
6-
<p class="meta text-muted mt-0">by {{ this.author }} on {{ this.pub_date|dateformat('full') }}</p>
6+
<p class="meta text-muted mt-0">by <a href="/blog/authors/{{ this.author }}">{{ this.author }}</a>
7+
on {{ this.pub_date|dateformat('full') }}</p>
78
<div class="body">{{ this.body }}</div>
89
<hr>
910
<p class="meta mt-0 mb-0"><span class="text-muted">Categories: </span>

templates/blog.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
{% for post in this.pagination.items %}
88
<li>
99
<a href="{{ post|url }}">{{ post.title }}</a>
10-
<p class="text-muted small">by {{ post.author }} on {{ post.pub_date|dateformat("YYYY-MM-dd") }}</p>
10+
<p class="text-muted small">by <a href="/blog/authors/{{ post.author }}">{{ post.author }}</a>
11+
on {{ post.pub_date|dateformat("YYYY-MM-dd") }}</p>
1112
</li>
1213
{% endfor %}
1314
</ul>

0 commit comments

Comments
 (0)