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" }} />
|
<KMenu type="main" context={{ type: "article" }} />
|
||||||
<RecipeHero
|
<RecipeHero
|
||||||
data={article}
|
data={article}
|
||||||
subline={[author, date.toString()]}
|
subline={[
|
||||||
|
author && {
|
||||||
|
title: author,
|
||||||
|
href: `/series?q=${encodeURIComponent(author)}`,
|
||||||
|
},
|
||||||
|
date.toString(),
|
||||||
|
]}
|
||||||
editLink={session
|
editLink={session
|
||||||
? `https://notes.max-richter.dev/Media/articles/${article.id}`
|
? `https://notes.max-richter.dev/Media/articles/${article.id}`
|
||||||
: ""}
|
: ""}
|
||||||
|
@ -29,7 +29,13 @@ export default function Greet(
|
|||||||
<KMenu type="main" context={serie} />
|
<KMenu type="main" context={serie} />
|
||||||
<RecipeHero
|
<RecipeHero
|
||||||
data={serie}
|
data={serie}
|
||||||
subline={[author, date.toString()]}
|
subline={[
|
||||||
|
author && {
|
||||||
|
title: author,
|
||||||
|
href: `/series?q=${encodeURIComponent(author)}`,
|
||||||
|
},
|
||||||
|
date.toString(),
|
||||||
|
]}
|
||||||
editLink={session
|
editLink={session
|
||||||
? `https://notes.max-richter.dev/Media/series/${serie.id}`
|
? `https://notes.max-richter.dev/Media/series/${serie.id}`
|
||||||
: ""}
|
: ""}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user