mirror of
https://github.com/thiloho/thiloho.github.io.git
synced 2025-11-22 10:21:36 +01:00
Add meaningful text for SEO meta tags
This commit is contained in:
@@ -12,26 +12,28 @@ const { title, description } = Astro.props;
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="apple-mobile-web-app-title" content="THohlt" />
|
||||
<meta name="viewport" content="width=device-width" initial-scale="1.0" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<meta name="apple-mobile-web-app-title" content="THohlt" />
|
||||
<link rel="manifest" href="/site.webmanifest" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={description} />
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
<link
|
||||
rel="alternate"
|
||||
type="application/rss+xml"
|
||||
title="Thilo Hohlt's Blog"
|
||||
href={new URL("rss.xml", Astro.url.origin)}
|
||||
/>
|
||||
<head>
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
</head>
|
||||
<title>
|
||||
{
|
||||
`${title} - ${Astro.originPathname === "/" ? "Software developer" : "Thilo Hohlt"}`
|
||||
}
|
||||
</title>
|
||||
<meta name="description" content={description} />
|
||||
<ClientRouter />
|
||||
<script is:inline>
|
||||
const setTheme = () => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "Steps to install NixOS on a system with ext4 and LUKS"
|
||||
description: "A guide to installing NixOS with full disk encryption using LUKS and LVM, showing the complete process from disk partitioning to system configuration"
|
||||
description: "A guide to installing NixOS with full disk encryption using LUKS and LVM, showing the complete process from disk partitioning to system configuration."
|
||||
pubDate: "2025-01-04"
|
||||
---
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import PageLayout from "../layouts/PageLayout.astro";
|
||||
---
|
||||
|
||||
<PageLayout title="404: Not found" description="Not found">
|
||||
<PageLayout title="404: Not found" description="Requested page not found.">
|
||||
<p>
|
||||
The file associated with the requested path (<code
|
||||
>{Astro.originPathname}</code
|
||||
|
||||
@@ -22,7 +22,7 @@ const { Content, headings } = await render(article);
|
||||
|
||||
<PageLayout
|
||||
title={article.data.title}
|
||||
description="Blog"
|
||||
description={article.data.description}
|
||||
pubDate={article.data.pubDate}
|
||||
modDate={article.data.modDate}
|
||||
{slug}
|
||||
|
||||
@@ -9,7 +9,10 @@ const sortedArticles = allArticles.sort((a, b) => {
|
||||
});
|
||||
---
|
||||
|
||||
<PageLayout title="Blog" description="Blog">
|
||||
<PageLayout
|
||||
title="Blog"
|
||||
description="Friendly technical articles with a focus on web and GNU/Linux topics."
|
||||
>
|
||||
<ul>
|
||||
{
|
||||
sortedArticles.map((article) => (
|
||||
|
||||
@@ -11,6 +11,9 @@ if (!indexContent) {
|
||||
const { Content } = await render(indexContent);
|
||||
---
|
||||
|
||||
<PageLayout title="Thilo Hohlt" description="Thilo Hohlt">
|
||||
<PageLayout
|
||||
title="Thilo Hohlt"
|
||||
description="Thilo Hohlt - Software developer from Germany, specialising in the development of high quality websites and web applications."
|
||||
>
|
||||
<Content />
|
||||
</PageLayout>
|
||||
|
||||
@@ -11,6 +11,9 @@ if (!legalContent) {
|
||||
const { Content } = await render(legalContent);
|
||||
---
|
||||
|
||||
<PageLayout title="Legal Disclosure" description="Legal Disclosure">
|
||||
<PageLayout
|
||||
title="Legal Disclosure"
|
||||
description="Legal notice and contact details in accordance with German law."
|
||||
>
|
||||
<Content />
|
||||
</PageLayout>
|
||||
|
||||
@@ -14,8 +14,9 @@ export const GET: APIRoute = async (context) => {
|
||||
}, new Date(0));
|
||||
|
||||
return rss({
|
||||
title: "Thilo Hohlt's Blog",
|
||||
description: "Thilo Hohlt's Blog",
|
||||
title: "Thilo Hohlt's blog",
|
||||
description:
|
||||
"Friendly technical articles with a focus on web and GNU/Linux topics.",
|
||||
site: context.url.origin,
|
||||
trailingSlash: false,
|
||||
xmlns: {
|
||||
|
||||
Reference in New Issue
Block a user