Add summary to descriptions
This commit is contained in:
@@ -19,6 +19,8 @@ export default function SlugTeks({hasError, errorMessage, parole, slug}) {
|
||||
return <Custom404 />
|
||||
}
|
||||
|
||||
const summary = `Paroles de « ${parole?.attributes?.titre} » : ${parole?.attributes?.transcription.slice(0, 100)}...`
|
||||
|
||||
const artistes = parole.attributes.artistes.length === 1 ? parole.attributes.artistes[0].data.attributes.alias : getAlias(parole.attributes.artistes, parole.attributes.prioriteArtistes)
|
||||
const {couverture} = parole.attributes
|
||||
const formatKouveti = () => {
|
||||
@@ -48,6 +50,7 @@ export default function SlugTeks({hasError, errorMessage, parole, slug}) {
|
||||
imageHeight={formatKouveti() ? formatKouveti().height : null}
|
||||
imageMime={formatKouveti() ? formatKouveti().mime : null}
|
||||
title={`${artistes} - ${parole.attributes.titre} | Paroles et Traductions`} tab={1} slug={`paroles/${slug}`}
|
||||
summary={summary}
|
||||
>
|
||||
<TeksDrawer parole={parole.attributes} paroleId={parole.id} slug={slug} />
|
||||
</HeadLayout>
|
||||
|
||||
Reference in New Issue
Block a user