From 2970e3043c265def202f4d6215e8a30b69027914 Mon Sep 17 00:00:00 2001 From: SindreKjelsrud Date: Thu, 19 Jun 2025 20:33:00 +0200 Subject: [PATCH] :bug: Fixed helmet not showing unique page-title Signed-off-by: SindreKjelsrud --- src/components/BlogContainer.astro | 8 +++++++- src/components/SectionContainer.astro | 10 ++++++++-- src/layouts/BlogPost.astro | 2 +- src/layouts/Gallery.astro | 2 +- src/layouts/Layout.astro | 2 +- src/pages/appearances.astro | 2 +- src/pages/blog/index.astro | 2 +- src/pages/cv.astro | 2 +- src/pages/guestbook.astro | 2 +- src/pages/logs/bookshelf.astro | 2 +- src/pages/logs/watchlist.astro | 2 +- src/pages/quotes.astro | 5 ++--- src/pages/todo.md | 5 ++--- src/pages/vinyl.astro | 2 +- 14 files changed, 29 insertions(+), 19 deletions(-) diff --git a/src/components/BlogContainer.astro b/src/components/BlogContainer.astro index c3c1647..451c419 100644 --- a/src/components/BlogContainer.astro +++ b/src/components/BlogContainer.astro @@ -3,12 +3,18 @@ import BaseHead from '../components/BaseHead.astro'; import BlogHeader from '../components/BlogHeader.astro'; import Footer from '../components/Footer.astro'; import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; + +interface Props { + title: string; + description: string; +} +const { title, description } = Astro.props; --- - +
diff --git a/src/components/SectionContainer.astro b/src/components/SectionContainer.astro index 003d869..680f2a0 100644 --- a/src/components/SectionContainer.astro +++ b/src/components/SectionContainer.astro @@ -3,13 +3,19 @@ import BaseHead from '../components/BaseHead.astro'; import Header from '../components/Header.astro'; import Footer from '../components/Footer.astro'; import { SITE_TITLE, SITE_DESCRIPTION } from '../consts'; + +interface Props { + title: string; + description: string; +} +const { title, description } = Astro.props; --- - - + +
diff --git a/src/layouts/BlogPost.astro b/src/layouts/BlogPost.astro index 8d56a35..000ec1f 100644 --- a/src/layouts/BlogPost.astro +++ b/src/layouts/BlogPost.astro @@ -7,7 +7,7 @@ type Props = CollectionEntry<'blog'>['data']; const { title, description, pubDate } = Astro.props; --- - +

{title}

diff --git a/src/layouts/Gallery.astro b/src/layouts/Gallery.astro index d7a7d8b..b1ef1ff 100644 --- a/src/layouts/Gallery.astro +++ b/src/layouts/Gallery.astro @@ -3,7 +3,7 @@ import SectionContainer from '../components/SectionContainer.astro'; const {frontmatter} = Astro.props; --- - +

[ gallery: {frontmatter.title} ]

diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index eeeb6a4..447a8af 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -3,7 +3,7 @@ import SectionContainer from '../components/SectionContainer.astro'; const {frontmatter} = Astro.props; --- - +

[ {frontmatter.title} ]

diff --git a/src/pages/appearances.astro b/src/pages/appearances.astro index 6a82b24..508077c 100644 --- a/src/pages/appearances.astro +++ b/src/pages/appearances.astro @@ -3,7 +3,7 @@ import SectionContainer from "../components/SectionContainer.astro"; import appearances from "../data/appearances.json"; --- - +

[ Appearances ]

diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index b12e7ca..e290a19 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -20,7 +20,7 @@ const postsByYear = posts.reduce((acc:any, post) => { // Sort the years const sortedYears = Object.keys(postsByYear).sort((a:any, b:any) => b - a); --- - +

[ Blog ]

💥 Subscribe via RSS diff --git a/src/pages/cv.astro b/src/pages/cv.astro index 2cd0182..affdc84 100644 --- a/src/pages/cv.astro +++ b/src/pages/cv.astro @@ -3,7 +3,7 @@ import SectionContainer from "../components/SectionContainer.astro"; import resume from "../data/resume.json"; --- - +

{resume.basics.name}

diff --git a/src/pages/guestbook.astro b/src/pages/guestbook.astro index a415114..e72d762 100644 --- a/src/pages/guestbook.astro +++ b/src/pages/guestbook.astro @@ -2,7 +2,7 @@ import SectionContainer from '../components/SectionContainer.astro'; --- - +
diff --git a/src/pages/logs/bookshelf.astro b/src/pages/logs/bookshelf.astro index efc3a3a..fd5afc6 100644 --- a/src/pages/logs/bookshelf.astro +++ b/src/pages/logs/bookshelf.astro @@ -36,7 +36,7 @@ const booksByYear = booksRead.reduce((acc, book) => { const sortedYears = Object.keys(booksByYear).sort((a: any, b: any) => b - a); --- - +

[ Bookshelf ]

on the shelf

diff --git a/src/pages/logs/watchlist.astro b/src/pages/logs/watchlist.astro index 26fe1c0..a1e8fe7 100644 --- a/src/pages/logs/watchlist.astro +++ b/src/pages/logs/watchlist.astro @@ -31,7 +31,7 @@ const tvByYear = watched.reduce((acc, tv) => { const sortedYears = Object.keys(tvByYear).sort((a: any, b: any) => b - a); --- - +

[ Watchlist ]

diff --git a/src/pages/quotes.astro b/src/pages/quotes.astro index 186b7d6..bda053c 100644 --- a/src/pages/quotes.astro +++ b/src/pages/quotes.astro @@ -1,10 +1,9 @@ --- import SectionContainer from '../components/SectionContainer.astro'; import quotes from '../data/quotes.json' -const today = new Date(); --- - -
+ +

[ Quotes ]

    diff --git a/src/pages/todo.md b/src/pages/todo.md index 2ca9d8e..f6cd5ae 100644 --- a/src/pages/todo.md +++ b/src/pages/todo.md @@ -1,16 +1,15 @@ --- -title: "TODOs" +title: "todo list" description: "" layout: "../layouts/Layout.astro" --- -> _Last update: June 02, 2025_ +> _Last update: June 19, 2025_ List of changes and new features I plan for this website. - Add log-page for wine/gin I like and have tried - Add page dedicated to work I'm proud of -- Fix helmet to show individual site-titles instead of the same one - Add `/concerts`-page (like [Kyrre](https://kyrremann.no/concert-vitae/) & [Wand3r](https://wand3r.net/concerts/)) - Add changelog to website using `git cliff -o CHANGELOG.md` - Redo [/gallery](/gallery) (CLS error - concrete height for images, compressed thumbnails instead of real one, hover start preload + zoom a bit out, spinner for loading?) or rewrite it to something like [rizaldys ig clone](https://ig.rizaldy.club/) \ No newline at end of file diff --git a/src/pages/vinyl.astro b/src/pages/vinyl.astro index 1ee6594..e63a50c 100644 --- a/src/pages/vinyl.astro +++ b/src/pages/vinyl.astro @@ -26,7 +26,7 @@ const vinylData = Object.keys(vinylByAlbumTitle).map(albumTitle => { }); --- - +

    [ Vinyl collection ]