feat: add clickable author to series and articles
This commit is contained in:
parent
ae9e841ace
commit
8703f5fda4
@ -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}`
|
||||
: ""}
|
||||
|
@ -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}`
|
||||
: ""}
|
||||
|
Loading…
x
Reference in New Issue
Block a user