Skip to content

Commit 64b5574

Browse files
Prefer linking to GitHub profiles in blog post bylines (#408)
- Link to GitHub profile if present, to Twitter profile as fallback, reversing the current order - Better supports viewing profile info even if not logged-in - Changes to Twitter/X now require being logged-in to see profile info - GitHub displays profile info even when not logged info
1 parent b0a117e commit 64b5574

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_layouts/post.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ <h1>{{ page.title }}</h1>
1818
{% endif %}
1919

2020
<span class="author">
21-
{% if author.twitter %}
22-
<a href="https://twitter.com/{{ author.twitter }}/" rel="nofollow" title="{{ author.name }} (@{{ author.twitter}}) on Twitter">{{ author.name }}</a>
23-
{% elsif author.github %}
21+
{% if author.github %}
2422
<a href="https://github.com/{{ author.github }}/" rel="nofollow" title="{{ author.name }} (@{{ author.github}}) on GitHub">{{ author.name }}</a>
23+
{% elsif author.twitter %}
24+
<a href="https://twitter.com/{{ author.twitter }}/" rel="nofollow" title="{{ author.name }} (@{{ author.twitter}}) on Twitter">{{ author.name }}</a>
2525
{% else %}
2626
{{ author.name }}
2727
{% endif %}

0 commit comments

Comments
 (0)