mirror of
https://github.com/skoelle/buildbroken-blog-archive.git
synced 2026-09-17 18:30:25 +00:00
121 lines
6.2 KiB
HTML
121 lines
6.2 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
{{- $title := cond .IsHome (.Site.Params.homeTitle | default .Site.Title) .Title }}
|
||
{{- if and .IsNode (ne .Kind "home") }}
|
||
{{- if eq .Kind "term" }}{{ $title = printf "%s (%s)" .Title (cond (eq .Data.Singular "tag") "Tag" "Kategorie") }}{{ end }}
|
||
{{- end }}
|
||
<title>{{ if .IsHome }}{{ $title }}{{ else }}{{ $title }} | {{ .Site.Title }}{{ end }}</title>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
{{- $desc := "" }}
|
||
{{- if .IsHome }}
|
||
{{- $desc = .Site.Params.description }}
|
||
{{- else if .Description }}
|
||
{{- $desc = .Description }}
|
||
{{- else if .Content }}
|
||
{{- $desc = .Content | plainify }}
|
||
{{- else if .IsNode }}
|
||
{{- if eq .Kind "term" }}
|
||
{{- if eq .Data.Singular "tag" }}
|
||
{{- $desc = printf "Alle Beiträge mit dem Tag „%s“ im build broken Blog (2009–2010)." .Title }}
|
||
{{- else if eq .Data.Singular "category" }}
|
||
{{- $desc = printf "Alle Beiträge in der Kategorie „%s“ im build broken Blog (2009–2010)." .Title }}
|
||
{{- else if eq .Data.Singular "author" }}
|
||
{{- $desc = printf "Alle Beiträge von %s im build broken Blog (2009–2010)." .Title }}
|
||
{{- else }}
|
||
{{- $desc = printf "Alle Beiträge zu %s im build broken Blog (2009–2010)." .Title }}
|
||
{{- end }}
|
||
{{- else if eq .Kind "section" }}
|
||
{{- if eq .Section "posts" }}
|
||
{{- $desc = "Alle Blogartikel des build broken Archivs (2009–2010): Clean Code, ASP.NET, MVC, MVP, WinForms, StupidDB, NoSQL, Scrum." }}
|
||
{{- else if eq .Section "tags" }}
|
||
{{- $desc = "Alle Schlagwörter (Tags) des build broken Blog-Archivs (2009–2010)." }}
|
||
{{- else if eq .Section "categories" }}
|
||
{{- $desc = "Alle Kategorien des build broken Blog-Archivs (2009–2010)." }}
|
||
{{- else if eq .Section "author" }}
|
||
{{- $desc = "Alle Autoren des build broken Blog-Archivs (2009–2010)." }}
|
||
{{- else }}
|
||
{{- $desc = printf "Übersicht %s im build broken Blog (2009–2010)." (lower .Title) }}
|
||
{{- end }}
|
||
{{- else if eq .Kind "taxonomy" }}
|
||
{{- if or (eq .Data.Plural "tags") (eq .Title "Tags") }}
|
||
{{- $desc = "Alle Schlagwörter (Tags) des build broken Blog-Archivs (2009–2010)." }}
|
||
{{- else if or (eq .Data.Plural "categories") (eq .Title "Categories") }}
|
||
{{- $desc = "Alle Kategorien des build broken Blog-Archivs (2009–2010)." }}
|
||
{{- else if or (eq .Data.Plural "authors") (eq .Data.Singular "author") }}
|
||
{{- $desc = "Alle Autoren des build broken Blog-Archivs (2009–2010)." }}
|
||
{{- else }}
|
||
{{- $desc = printf "Übersicht %s im build broken Blog (2009–2010)." (lower .Title) }}
|
||
{{- end }}
|
||
{{- else }}
|
||
{{- $desc = printf "Übersicht %s im build broken Blog (2009–2010)." (lower .Title) }}
|
||
{{- end }}
|
||
{{- else if eq .Kind "404" }}
|
||
{{- $desc = "Die angeforderte Seite wurde nicht gefunden – build broken Blog-Archiv (2009–2010)." }}
|
||
{{- else }}
|
||
{{- $desc = .Description }}
|
||
{{- end }}
|
||
{{- if not $desc }}{{ $desc = .Summary | plainify }}{{ end }}
|
||
{{- $desc = strings.TrimSpace (strings.TrimRight "…" $desc) | truncate 160 }}
|
||
{{- if $desc }}<meta name="description" content="{{ $desc }}">{{ end }}
|
||
{{- if eq .Kind "404" }}<meta name="robots" content="noindex">{{ end }}
|
||
{{- if ne .Kind "404" }}<link rel="canonical" href="{{ .Permalink }}">{{ end }}
|
||
{{- $ogType := "website" }}
|
||
{{- if .IsPage }}{{ $ogType = "article" }}{{ end }}
|
||
<meta property="og:type" content="{{ $ogType }}">
|
||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||
<meta property="og:title" content="{{ $title }}">
|
||
<meta property="og:url" content="{{ .Permalink }}">
|
||
{{- if $desc }}<meta property="og:description" content="{{ $desc }}">{{ end }}
|
||
{{- if .Params.images }}
|
||
{{- range .Params.images }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
|
||
{{- else }}<meta property="og:image" content="{{ .Site.Params.bannerImage | absURL }}">{{ end }}
|
||
{{- if .IsPage }}{{ with .Date }}<meta property="article:published_time" content="{{ .Format "2006-01-02T15:04:05Z07:00" }}">{{ end }}{{ end }}
|
||
<meta name="twitter:card" content="summary_large_image">
|
||
<meta name="twitter:title" content="{{ $title }}">
|
||
{{- if $desc }}<meta name="twitter:description" content="{{ $desc }}">{{ end }}
|
||
<meta name="twitter:image" content="{{ .Site.Params.bannerImage | absURL }}">
|
||
<link rel="icon" type="image/svg+xml" href="{{ "favicon.svg" | relURL }}">
|
||
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}">
|
||
</head>
|
||
<body>
|
||
<header class="site-header">
|
||
<img class="site-banner" src="{{ .Site.Params.bannerImage }}" alt="" width="961" height="226">
|
||
<div class="header-inner">
|
||
<h1 class="site-title"><a href="{{ "/" | relURL }}">{{ .Site.Title }}</a></h1>
|
||
<p class="site-subtitle">{{ .Site.Params.subtitle }}</p>
|
||
{{ if .Site.Menus.main }}
|
||
<nav class="site-nav">
|
||
{{ range .Site.Menus.main }}
|
||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||
{{ end }}
|
||
</nav>
|
||
{{ end }}
|
||
</div>
|
||
</header>
|
||
|
||
<main class="site-main">
|
||
{{ block "main" . }}{{ end }}
|
||
</main>
|
||
|
||
<footer class="site-footer">
|
||
<p>© 2009-{{ now.Format "2006" }} build broken · <a href="{{ "/impressum/" | relURL }}">Impressum</a> · archiviert als statische Seite · part of the <a href="https://hub.moonweb.org">moonweb.org</a> homelab.</p>
|
||
</footer>
|
||
|
||
<dialog id="broken-link-dialog" class="broken-link-dialog">
|
||
<div class="broken-link-dialog-inner">
|
||
<p class="broken-link-title">Diese URL scheint nicht mehr verfügbar zu sein</p>
|
||
<p class="broken-link-url" id="broken-link-url"></p>
|
||
<div class="broken-link-actions">
|
||
<a class="broken-link-archive" id="broken-link-archive" target="_blank" rel="noopener">Auf web.archive.org ansehen</a>
|
||
<button type="button" data-dialog-close>Schließen</button>
|
||
</div>
|
||
</div>
|
||
</dialog>
|
||
|
||
<script type="application/json" id="link-status-data">{{ (dict "broken" (hugo.Data.links.broken | default dict) "replacement" (hugo.Data.links.replacement | default dict)) | jsonify | safeJS }}</script>
|
||
<script src="{{ "js/link-status.js" | relURL }}"></script>
|
||
</body>
|
||
</html>
|