feat: add text to blog post if author is set

Fixes #341
This commit is contained in:
Theodore Kruczek
2024-01-14 18:49:32 -05:00
parent 155a602203
commit 65de4fadd7
3 changed files with 19 additions and 0 deletions

View File

@@ -60,6 +60,14 @@ const link = APP_BLOG?.post?.isEnabled ? getPermalink(post.permalink, 'post') :
</>
)
}
{
post.author && (
<>
{' '}
· <span>{post.author.replaceAll('-', ' ')}</span>
</>
)
}
</span>
</div>
<h2 class="text-xl sm:text-2xl font-bold leading-tight mb-2 font-heading dark:text-slate-300">