diff options
Diffstat (limited to 'web/layouts/partials')
| -rw-r--r-- | web/layouts/partials/docs-nav.html | 16 | ||||
| -rw-r--r-- | web/layouts/partials/head.html | 26 |
2 files changed, 42 insertions, 0 deletions
diff --git a/web/layouts/partials/docs-nav.html b/web/layouts/partials/docs-nav.html new file mode 100644 index 0000000..213a1eb --- /dev/null +++ b/web/layouts/partials/docs-nav.html @@ -0,0 +1,16 @@ +{{ with site.GetPage "/docs" }} +<aside> + <div class="group"> + <h2>Docs</h2> + {{ range .Pages.ByWeight }} + <a href="{{ .RelPermalink }}"{{ if eq .RelPermalink $.RelPermalink }} aria-current="page"{{ end }}>{{ .Title }}</a> + {{ end }} + </div> + <div class="group"> + <h2>Source</h2> + <a href="{{ site.Params.repo }}/blob/main/README.md">README</a> + <a href="{{ site.Params.repo }}/blob/main/DESIGN.md">DESIGN.md</a> + <a href="{{ site.Params.repo }}/blob/main/formal/zash-spec.pdf">Specification (PDF)</a> + </div> +</aside> +{{ end }} diff --git a/web/layouts/partials/head.html b/web/layouts/partials/head.html new file mode 100644 index 0000000..e145475 --- /dev/null +++ b/web/layouts/partials/head.html @@ -0,0 +1,26 @@ +{{- $desc := or .Description site.Params.description -}} +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<meta name="theme-color" content="#0b0e17"> +<meta name="color-scheme" content="dark"> +<title>{{ if .IsHome }}{{ site.Title }} · a POSIX shell for z/OS UNIX{{ else }}{{ .Title }} · {{ site.Title }}{{ end }}</title> +<meta name="description" content="{{ $desc }}"> +<link rel="canonical" href="{{ .Permalink }}"> + +<meta property="og:site_name" content="{{ site.Title }}"> +<meta property="og:title" content="{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }}{{ end }}"> +<meta property="og:description" content="{{ $desc }}"> +<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"> +<meta property="og:url" content="{{ .Permalink }}"> +<meta property="og:image" content="{{ "zash-logo.svg" | absURL }}"> +<meta name="twitter:card" content="summary"> + +<link rel="icon" href="{{ "zash-logo.svg" | relURL }}" type="image/svg+xml"> +{{- with resources.Get "css/zash.css" }} + {{- $css := . | minify | fingerprint }} +<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}"> +{{- end }} +{{- with resources.Get "css/chroma.css" }} + {{- $chroma := . | minify | fingerprint }} +<link rel="stylesheet" href="{{ $chroma.RelPermalink }}" integrity="{{ $chroma.Data.Integrity }}"> +{{- end }} |
