first
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<footer>
|
||||
<p>{{ .Site.Title }} – <a href="{{ "index.xml" | relURL }}">RSS</a></p>
|
||||
</footer>
|
||||
@@ -0,0 +1,20 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} – {{ .Site.Title }}{{ end }}</title>
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Summary }}{{ . | plainify | truncate 160 }}{{ else }}{{ .Site.Params.description }}{{ end }}{{ end }}">
|
||||
|
||||
<!-- Open Graph -->
|
||||
<meta property="og:title" content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} – {{ .Site.Title }}{{ end }}">
|
||||
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Summary }}{{ . | plainify | truncate 160 }}{{ else }}{{ .Site.Params.description }}{{ end }}{{ end }}">
|
||||
<meta property="og:type" content="{{ if .IsHome }}website{{ else }}article{{ end }}">
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
|
||||
<!-- CSS -->
|
||||
{{ $css := resources.Get "css/main.css" | resources.Minify }}
|
||||
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
|
||||
|
||||
<!-- RSS -->
|
||||
{{ with .OutputFormats.Get "rss" }}
|
||||
<link rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" href="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
@@ -0,0 +1,8 @@
|
||||
<header>
|
||||
<a href="/" class="logo">{{ .Site.Title }}</a>
|
||||
{{ if not .IsHome }}
|
||||
<nav aria-label="Breadcrumb">
|
||||
<a href="/">← Start</a>
|
||||
</nav>
|
||||
{{ end }}
|
||||
</header>
|
||||
@@ -0,0 +1,4 @@
|
||||
<details class="toc" {{ if gt (len .Fragments.Headings) 2 }}open{{ end }}>
|
||||
<summary>Inhaltsverzeichnis</summary>
|
||||
{{ .TableOfContents }}
|
||||
</details>
|
||||
Reference in New Issue
Block a user