Skip to content

Commit 9c77ed8

Browse files
committed
added author name
1 parent ce7f97f commit 9c77ed8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/layouts/PostDetails.astro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ const nextPost =
9696
<Content />
9797
</article>
9898

99+
<!-- Author Section -->
100+
{author && (
101+
<div class="mt-16 border-t border-skin-border pt-8 text-center">
102+
<div class="text-lg text-skin-muted">Written by</div>
103+
<div class="text-2xl font-semibold text-skin-base mt-1">{author}</div>
104+
</div>
105+
)}
99106
<ul class="my-8">
100107
{tags.map((tag) => <Tag tag={slugifyStr(tag)} />)}
101108
</ul>

0 commit comments

Comments
 (0)