Mirror of the sourcecode for my blog, original repo: https://github.com/NobbZ/blog-nobbz-dev
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

author page title

+10 -1
+10 -1
src/pages/authors/[slug].astro
··· 30 30 31 31 const { author } = Astro.props; 32 32 const { Content } = await author.render(); 33 + 34 + const first_name = author.data.first_name ? `${author.data.first_name} ` : ""; 35 + const last_name = author.data.last_name ? ` ${author.data.last_name}` : ""; 36 + const nick_name = 37 + author.data.first_name || author.data.last_name 38 + ? `”${author.data.nick_name}“` 39 + : author.data.nick_name; 40 + 41 + const page_title = first_name + nick_name + last_name; 33 42 --- 34 43 35 44 <NobbzDev title={author.data.nick_name}> 36 45 <article> 37 - <h1 class:list={["p-1"]}>{author.data.nick_name}</h1> 46 + <h1 class:list={["p-1"]}>{page_title}</h1> 38 47 39 48 <Content components={components} /> 40 49 </article>