Skip to content

Commit 6dd83fa

Browse files
committed
fixing linking issue to author page from blog
1 parent 83ba24d commit 6dd83fa

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

theme/templates/article.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ <h1 style="font-size: 36px;">{{ article.title }}</h1>
2929
<div style="font-size:12px;color:#666;margin:0 0 10px">
3030
{% if article.modified != article.date %}
3131
Post updated by
32-
{% if article.author %}<a href="{{ article.authorlink }}">{{ article.author }}</a>{% else %}<a href="/about-author.html">Matt Makai</a>{% endif %}
32+
{% if article.author == "Matt Makai" %}<a href="/about-author.html">Matt Makai</a>{% else %}<a href="{{ article.authorlink }}">{{ article.author }}</a>{% endif %}
3333
on {{ article.modified.strftime('%B %d, %Y') }}. Originally posted
3434
on {{ article.date.strftime('%B %d, %Y') }}.
3535
{% else %}
36-
Posted by
37-
{% if article.author %}<a href="{{ article.authorlink }}">{{ article.author }}</a>{% else %}<a href="/about-author.html">Matt Makai</a>{% endif %}
36+
Posted by
37+
{% if article.author == "Matt Makai" %}<a href="/about-author.html">Matt Makai</a>{% else %}<a href="{{ article.authorlink }}">{{ article.author }}</a>{% endif %}
3838
on {{ article.date.strftime('%B %d, %Y') }}.
3939
{% endif %}
4040
</div>

theme/templates/blog.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ <h2 style="padding-top:0;margin-top:0"><a href="/blog/{{ a.slug }}.html">{{ a.ti
2525
<div style="font-size:12px;color:#666;margin:0 0 10px">
2626
{% if a.modified != a.date %}
2727
Post updated by
28-
{% if a.author %}<a href="{{ a.authorlink }}">{{ a.author }}</a>{% else %}<a href="/about-author.html">Matt Makai</a>{% endif %}
28+
{% if a.author == "Matt Makai" %}<a href="/about-author.html">Matt Makai</a>{% else %}<a href="{{ a.authorlink }}">{{ a.author }}</a>{% endif %}
2929
on {{ a.modified.strftime('%B %d, %Y') }}. Originally posted
3030
on {{ a.date.strftime('%B %d, %Y') }}.
3131
{% else %}
32-
Posted by
33-
{% if a.author %}<a href="{{ a.authorlink }}">{{ a.author }}</a>{% else %}<a href="/about-author.html">Matt Makai</a>{% endif %}
32+
Posted by
33+
{% if a.author == "Matt Makai" %}<a href="/about-author.html">Matt Makai</a>{% else %}<a href="{{ a.authorlink }}">{{ a.author }}</a>{% endif %}
3434
on {{ a.date.strftime('%B %d, %Y') }}.
3535
{% endif %}
3636
</div>

0 commit comments

Comments
 (0)