FIX: added all page titles
continuous-integration/drone/push Build is passing Details

main
parent a5d3edf6db
commit c5e0241354

@ -69,7 +69,7 @@ const { title, description, thumbnail, pageTags } = Astro.props
src="//analytics.phc.dm.unipi.it/count.js"
data-goatcounter="https://analytics.phc.dm.unipi.it/count"></script>
<title>{title}</title>
<title>{title ?? 'PHC'}</title>
</head>
<body class:list={typeof pageTags === 'string' ? [pageTags] : pageTags}>
<slot />

@ -4,7 +4,7 @@ import PageLayout from '@layouts/PageLayout.astro'
import { AppuntiList, AppuntiCard } from '@client/Appunti'
---
<PageLayout pageTags="appunti">
<PageLayout title="Appunti | PHC" pageTags="appunti">
<h1>Appunti & Dispense</h1>
<div class="search">

@ -16,7 +16,11 @@ const { entry } = Astro.props
const { Content } = await entry.render()
---
<ArticleLayout {...entry.data} pageTags={['guida', entry.data.id, entry.data.series && 'series']}>
<ArticleLayout
{...entry.data}
title={entry.data.title + ' | Guide | PHC'}
pageTags={['guida', entry.data.id, entry.data.series && 'series']}
>
<h1>{entry.data.title}</h1>
{entry.data.series && <div class="series">Serie: {entry.data.series}</div>}

@ -6,7 +6,7 @@ import PageLayout from '@layouts/PageLayout.astro'
const guides = await getCollection('guides')
---
<PageLayout pageTags="guide">
<PageLayout title="Guide | PHC" pageTags="guide">
<h1>
<a href="/guide">Guide</a>
</h1>

@ -33,7 +33,7 @@ interface Props {
const { tag, guides } = Astro.props
---
<PageLayout pageTags="guide tag">
<PageLayout title={`#${tag} | Guide | PHC`} pageTags="guide tag">
<h1><a href="/guide">Guide</a> > <a href={`/guide/tags/${tag}`}>#{tag}</a></h1>
<div class="card-list">
{

@ -12,7 +12,7 @@ const news = await getCollection('news')
const galleryCollage = await Astro.glob('@/assets/gallery/*.jpg')
---
<PageLayout pageTags="homepage">
<PageLayout title="PHC" pageTags="homepage">
<section class="principal">
<div class="circuit-layer">
<canvas id="circuits-art"></canvas>

@ -2,7 +2,7 @@
import PageLayout from '../layouts/PageLayout.astro'
---
<PageLayout pageTags="login">
<PageLayout title="Login | PHC" pageTags="login">
<h1>Login</h1>
<!-- form with username and password, and a button for oauth login -->

@ -15,6 +15,6 @@ const { entry } = Astro.props
const { Content } = await entry.render()
---
<ArticleLayout {...entry.data} pageTags={['notizia']}>
<ArticleLayout {...entry.data} title={entry.data.title + ' | Notizie | PHC'} pageTags={['notizia']}>
<Content />
</ArticleLayout>

@ -6,7 +6,7 @@ import PageLayout from '@layouts/PageLayout.astro'
const news = await getCollection('news')
---
<PageLayout pageTags="notizie">
<PageLayout title="Notizie | PHC" pageTags="notizie">
<h1><a href="/notizie">Notizie</a></h1>
<div class="card-list">
{

@ -10,7 +10,7 @@ import imgCluster from '@/assets/gallery/001-cluster-fra-luca@4x3.jpg'
import WebSite from '@/assets/gallery/005-website-development@3x4.jpg'
---
<BaseLayout {...Astro.props} pageTags={'storia'}>
<BaseLayout title="Storia | PHC" pageTags={'storia'}>
<Header />
<main>
<div class="card large" style={{ '--card-base': '#ffd3a0' }}>

@ -4,7 +4,7 @@ import PageLayout from '../layouts/PageLayout.astro'
import { UtentiPage } from '../client/UtentiPage.tsx'
---
<PageLayout pageTags="utenti">
<PageLayout title="Utenti | PHC" pageTags="utenti">
<h1>Utenti</h1>
<UtentiPage client:load />
</PageLayout>

Loading…
Cancel
Save