Skip to content

Commit 1170244

Browse files
Fixup author byline
1 parent 8b3ce9c commit 1170244

1 file changed

Lines changed: 22 additions & 20 deletions

File tree

_includes/article.html

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,33 @@ <h2 id="{{current_year}}" class="text-2xl font-bold text-neutral-800 mt-10 mb-4
1515
{%- assign author_name = author_profile.name | default: page.author -%}
1616
<div class="max-w-3xl mx-auto">
1717
<h1 class="text-3xl md:text-4xl font-bold text-neutral-800 mb-4 break-words">{{ page.title }}</h1>
18-
<div class="flex flex-wrap items-center gap-x-3 gap-y-1 mb-2 text-base text-neutral-700">
18+
<div class="flex items-center gap-3 mb-8">
1919
{% if page.author_email %}
2020
{% assign author_hash = page.author_email | md5 %}
21-
<img alt="" src="https://secure.gravatar.com/avatar/{{ author_hash }}?s=80&d=retro" loading="lazy" decoding="async" width="32" height="32" class="w-8 h-8 rounded-full bg-neutral-200">
21+
<img alt="" src="https://secure.gravatar.com/avatar/{{ author_hash }}?s=88&d=retro" loading="lazy" decoding="async" width="44" height="44" class="w-11 h-11 rounded-full bg-neutral-200 shrink-0">
2222
{% endif %}
23-
{% if author_name %}
24-
{% if author_profile.url %}
25-
<a href="{{ author_profile.url }}" rel="author" class="text-neutral-800 hover:text-orange-700 hover:underline">{{ author_name }}</a>
26-
{% else %}
27-
<span>{{ author_name }}</span>
23+
<div class="min-w-0 leading-tight">
24+
<div class="flex flex-wrap items-center gap-x-2 gap-y-0.5 text-base text-neutral-800">
25+
{% if author_name %}
26+
{% if author_profile.url %}
27+
<a href="{{ author_profile.url }}" rel="author" class="font-medium hover:text-orange-700 hover:underline">{{ author_name }}</a>
28+
{% else %}
29+
<span class="font-medium">{{ author_name }}</span>
30+
{% endif %}
31+
<span class="text-neutral-400" aria-hidden="true">&middot;</span>
32+
{% endif %}
33+
<time class="text-neutral-600" datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date_to_string }}</time>
34+
{% assign updated_at = page.last_modified_at | default: page.updated %}
35+
{% if updated_at %}
36+
<span class="text-neutral-400" aria-hidden="true">&middot;</span>
37+
<span class="text-neutral-600">Updated <time datetime="{{ updated_at | date_to_xmlschema }}">{{ updated_at | date_to_string }}</time></span>
38+
{% endif %}
39+
</div>
40+
{% if author_profile.bio %}
41+
<div class="mt-0.5 text-sm text-neutral-600">{{ author_profile.bio }}</div>
2842
{% endif %}
29-
<span class="text-neutral-400" aria-hidden="true">&middot;</span>
30-
{% endif %}
31-
<time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date_to_string }}</time>
32-
{% assign updated_at = page.last_modified_at | default: page.updated %}
33-
{% if updated_at %}
34-
<span class="text-neutral-400" aria-hidden="true">&middot;</span>
35-
<span>Updated <time datetime="{{ updated_at | date_to_xmlschema }}">{{ updated_at | date_to_string }}</time></span>
36-
{% endif %}
43+
</div>
3744
</div>
38-
{% if author_profile.bio %}
39-
<p class="mb-8 text-sm text-neutral-600">{{ author_profile.bio }}</p>
40-
{% else %}
41-
<div class="mb-6"></div>
42-
{% endif %}
4345

4446
<article class="prose prose-lg max-w-none">
4547
{{ content }}

0 commit comments

Comments
 (0)