diff --git a/TODO.md b/TODO.md index d3bb1fd..faa676e 100644 --- a/TODO.md +++ b/TODO.md @@ -14,13 +14,13 @@ ## Layout - [ ] Dark mode toggle - [ ] Navigate using pathname / breadcrumbs -- [ ] Better style for blocks +- [ ] Better style for \ blocks ## Accessibility - [ ] All interactable elements have labels ## I18N -- [ ] Markdown for text +- [ ] Markdown for translations ## ~/ - [ ] About me description @@ -33,16 +33,19 @@ ## ~/projects - [ ] Translate projects -- [ ] NixOS on desktop - [ ] RSS Feed ## ~/projects/[project] - [ ] Only use Gitea icon for Gitea links - [ ] Bachelor project -- [ ] Sparebank1 ActualBudget service +- [x] Sparebank1 ActualBudget service - [ ] More about this website +- [ ] NixOS on desktop - [ ] Copy link to h tag and scroll to h tag on load - [x] External links should open in new tab +- [x] Add keywords to meta tag +- [x] Add description to meta tag +- [ ] Source on image if "borrowed" from somewhere ## ~/slashes - [ ] List of all slashes diff --git a/src/components/projects/ProjectPage.astro b/src/components/projects/ProjectPage.astro index 526508e..a47e8ab 100644 --- a/src/components/projects/ProjectPage.astro +++ b/src/components/projects/ProjectPage.astro @@ -22,6 +22,7 @@ const { title, description, tags, + keywords, heroImage, heroImageAlt, source, @@ -37,7 +38,12 @@ function localeDateString(isoString: string): string { } --- - +

{title}

diff --git a/src/content/projects/homepage.mdx b/src/content/projects/homepage.mdx index 6b4a561..33457b6 100644 --- a/src/content/projects/homepage.mdx +++ b/src/content/projects/homepage.mdx @@ -5,7 +5,7 @@ description: "Welcome to my homepage / portfolio" heroImage: "assets/recursive-meme.png" heroImageAlt: "A recursive meme that says: Self-reference, recursive meme is self-referential" tags: [Astro, Svelte, TypeScript, I18n, TailwindCSS, Docker] -keywords: [] +keywords: [Martin Berg Alstad, portfolio, homepage, website, martials, emberal] source: "https://git.martials.no/martials/martials.no" createdAt: "2024-09-22" updatedAt: "2025-02-15" diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7cd4ed4..0f1a302 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -6,9 +6,11 @@ import { resolvePathname } from "@/utils/linking" interface Props { title: string + description?: string + keywords?: ReadonlyArray class?: string } -const { title, class: clazz } = Astro.props +const { title, description, keywords, class: clazz } = Astro.props const mainClass = "grow max-w-[1000px] m-auto sm:min-w-[500px] not-sm:w-full px-5" --- @@ -17,13 +19,16 @@ const mainClass = - + + + {description && } + {keywords && } - {title} | Martin Berg Alstad +