File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,11 +65,14 @@ export async function generateMetadata({ params }: { params: tParams }) {
6565 const releaseName = release . name && typeof release . name === 'string' ? release . name : '' ;
6666 const pageTitle = artistNames ? `${ artistNames } - ${ releaseName } ` : releaseName ;
6767
68+ const titleHasAaronStatic = / a a r o n s t a t i c / i. test ( pageTitle ) ;
69+ const fullTitle = titleHasAaronStatic ? pageTitle : `${ pageTitle } - Aaron Static` ;
70+
6871 return {
69- title : ` ${ pageTitle } - Aaron Static` ,
72+ title : fullTitle ,
7073 description : release . description ?. [ 0 ] || 'Music by Aaron Static' ,
7174 openGraph : {
72- title : ` ${ pageTitle } - Aaron Static` ,
75+ title : fullTitle ,
7376 description : release . description ?. [ 0 ] || 'Music by Aaron Static' ,
7477 images : release . images ?. [ 0 ] ?. url ? [ { url : release . images [ 0 ] . url } ] : [ ] ,
7578 } ,
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments