diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 54 | ||||
-rw-r--r-- | layouts/_default/list.html | 11 | ||||
-rw-r--r-- | layouts/_default/single.html | 10 | ||||
-rw-r--r-- | layouts/_default/term.html | 19 |
4 files changed, 94 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..f69ca6a --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,54 @@ +{{- $cssMain := resources.Get "theme/main.scss" | resources.ToCSS | fingerprint -}} +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="canonical" class="u-url" href="{{ .Permalink }}"> + <link rel="stylesheet" type="text/css" href="{{ $cssMain.Permalink }}"> + <link rel="me" href="https://fedi.tyil.nl/@tyil"> + <link rel="me" href="https://git.tyil.nl"> + <link rel="me" href="https://sr.ht/~tyil"> + <link rel="me" href="https://www.tyil.nl" class="h-card"> + <link rel="me" href="mailto:p.spek@tyil.nl"> + {{- range .AlternativeOutputFormats }} + <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" href="{{ .Permalink }}"> + {{- end }} + <title>{{ .Page.Title }} - {{ .Site.Title }}</title> + {{- block "head" . }} + {{- end }} + </head> + <body> + {{- block "body" . }} + <header id="site-header"> + <div class="container"> + <nav class="main"> + <a href="/" class="brand-name">{{ .Site.Title }}</a> + {{- range sort .Site.Sections "Title" }} + <a href="{{ .Permalink }}">{{ .Title }}</a> + {{- end }} + </nav> + </div> + </header> + <main id="site-main"> + <div class="container"> + {{- block "main" . }}{{ end }} + </div> + </main> + <footer id="site-footer"> + <div class="container"> + <hr> + <p>© 2016 - {{ now.Year }} – Patrick "tyil" Spek</p> + <p> + All content is licensed as per the license shown below + that content. All other sources (html, css, ...) are + released under the terms of the <a + href="https://www.gnu.org/licenses/gpl-3.0.txt">GNU GPL, + version 3</a> or later. + </p> + </div> + </footer> + {{- end }} + </body> +</html> diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..6ba66fc --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,11 @@ +{{- define "main" }} +<h1>{{ .Title }}</h1> +{{ .Content }} +<ul> + {{- range .Paginator.Pages }} + <li> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </li> + {{- end }} +</ul> +{{- end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..79dc350 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,10 @@ +{{ define "main" }} +<article> + <header> + <h1>{{ .Title }}</h1> + </header> + <main> + {{ .Content }} + </main> +</article> +{{ end }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html new file mode 100644 index 0000000..ee63c70 --- /dev/null +++ b/layouts/_default/term.html @@ -0,0 +1,19 @@ +{{ define "main" }} +<h1>Posts tagged with #{{ .Title }}</h1> +{{ .Content }} +<ul> + {{ range .Paginator.Pages }} + <li> + <a href="{{ .Permalink }}"> + {{ .Title }} + </a> + <small> + {{ .Date | dateFormat "2006-01-02" }} + {{- range .Params.tags }} + <a href="/tags/{{ . | lower }}">#{{ . }}</a> + {{- end }} + </small> + </li> + {{ end }} +</ul> +{{ end }} |