From 7197b149ff7fb2da8767edb0c733ae3b230c31dc Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Sun, 16 Aug 2026 20:42:41 +0200 Subject: [PATCH] SEO --- content/posts/reflection.md | 2 +- hugo.toml | 1 + layouts/_default/404.html | 9 +++++++++ layouts/_default/baseof.html | 20 ++++++++++++++++++++ 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 layouts/_default/404.html diff --git a/content/posts/reflection.md b/content/posts/reflection.md index 280d1f9..d7dd327 100644 --- a/content/posts/reflection.md +++ b/content/posts/reflection.md @@ -6,7 +6,7 @@ original_url: "https://aztec-project.org/blog/reflection.html" archive_url: "https://web.archive.org/web/20250114131122/https://aztec-project.org/blog/reflection.html" author: "Thomas Christian" categories: ["How-To"] -tags: ["Assemblies", "Assemby", "C#", "Reflection"] +tags: ["Assemblies", "Assembly", "C#", "Reflection"] --- ## Vorbereitung diff --git a/hugo.toml b/hugo.toml index 6f9b1bf..72a84d1 100644 --- a/hugo.toml +++ b/hugo.toml @@ -12,6 +12,7 @@ paginate = 10 [params] subtitle = "but we can fix it! Sometimes :)" bannerImage = "/images/banner.jpg" + description = "build broken – Das Blog-Archiv des .NET-/Softwareentwicklungs-Blogs (2009–2010): Artikel zu Clean Code, ASP.NET, MVC, MVP, WinForms, StupidDB, NoSQL, Scrum und mehr. Von Stefan Kölle, Christina Hirth, Thomas Christian und Andreas Seebauer." [markup.goldmark.renderer] unsafe = true diff --git a/layouts/_default/404.html b/layouts/_default/404.html new file mode 100644 index 0000000..aeb787c --- /dev/null +++ b/layouts/_default/404.html @@ -0,0 +1,9 @@ +{{ define "main" }} +
+
+

Seite nicht gefunden

+

Die angeforderte Seite existiert nicht (mehr). Möglicherweise ist der Artikel umgezogen.

+

← Zurück zur Startseite

+
+
+{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ccae5ae..11ab83f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,6 +4,26 @@ {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }} + {{- $title := cond .IsHome .Site.Title .Title }} + {{- $desc := "" }} + {{- if .IsHome }}{{ $desc = .Site.Params.description }}{{ else }}{{ $desc = .Description }}{{ end }} + {{- if not $desc }}{{ $desc = .Summary | plainify }}{{ end }} + {{- $desc = strings.TrimSpace (strings.TrimRight "…" $desc) | truncate 160 }} + {{- if $desc }}{{ end }} + + + + + + {{- if $desc }}{{ end }} + {{- if .Params.images }} + {{- range .Params.images }}{{ end }} + {{- else }}{{ end }} + {{- if not .IsHome }}{{ with .Date }}{{ end }}{{ end }} + + + {{- if $desc }}{{ end }} +