feat: add clickable author to series and articles

This commit is contained in:
max_richter 2023-08-12 21:04:49 +02:00
parent ae9e841ace
commit 8703f5fda4
2 changed files with 14 additions and 2 deletions

View File

@ -35,7 +35,13 @@ export default function Greet(
<KMenu type="main" context={{ type: "article" }} />
<RecipeHero
data={article}
subline={[author, date.toString()]}
subline={[
author && {
title: author,
href: `/series?q=${encodeURIComponent(author)}`,
},
date.toString(),
]}
editLink={session
? `https://notes.max-richter.dev/Media/articles/${article.id}`
: ""}

View File

@ -29,7 +29,13 @@ export default function Greet(
<KMenu type="main" context={serie} />
<RecipeHero
data={serie}
subline={[author, date.toString()]}
subline={[
author && {
title: author,
href: `/series?q=${encodeURIComponent(author)}`,
},
date.toString(),
]}
editLink={session
? `https://notes.max-richter.dev/Media/series/${serie.id}`
: ""}