fundbureau: single-page site + Docker/Proxmox deploy
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{{ define "bodyclass" }}notfound{{ end }}
|
||||
{{ define "main" }}
|
||||
<header class="wordmark"><a href="{{ "/" | relURL }}">{{ .Site.Params.name }}</a></header>
|
||||
<main class="stage">
|
||||
<p class="intro">404 — not found</p>
|
||||
<p><a href="{{ "/" | relURL }}">← back</a></p>
|
||||
</main>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ .Site.Language.Lang | default "de" }}" dir="ltr">
|
||||
{{ partial "head.html" . }}
|
||||
<body class="{{ block "bodyclass" . }}{{ end }}">
|
||||
{{ block "main" . }}{{ end }}
|
||||
<script>
|
||||
// kein kontextmenü, keine selektion, kein bild-drag
|
||||
['contextmenu', 'selectstart', 'dragstart'].forEach(function (ev) {
|
||||
document.addEventListener(ev, function (e) { e.preventDefault(); });
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,32 @@
|
||||
{{ define "bodyclass" }}home{{ end }}
|
||||
{{ define "main" }}
|
||||
{{ $a := .Site.Params.address }}
|
||||
<header class="wordmark">
|
||||
<a href="{{ "/" | relURL }}">{{ .Site.Params.name }}</a>
|
||||
</header>
|
||||
|
||||
<main class="stage">
|
||||
{{ with .Site.Params.hero.image }}
|
||||
<figure class="hero">
|
||||
<img src="{{ . | relURL }}" alt="{{ $.Site.Params.hero.alt }}" width="774" height="774">
|
||||
</figure>
|
||||
{{ end }}
|
||||
|
||||
<section class="colophon">
|
||||
{{ with .Site.Params.intro }}<p class="intro">{{ . | safeHTML }}</p>{{ end }}
|
||||
<address>
|
||||
{{ with $a.legal }}<span>{{ . }}</span>{{ end }}
|
||||
{{ with $a.street }}<span>{{ . }}</span>{{ end }}
|
||||
{{ with $a.city }}<span>{{ . }}</span>{{ end }}
|
||||
{{ with .Site.Params.email }}<a href="mailto:{{ . }}">{{ . }}</a>{{ end }}
|
||||
{{ with .Site.Params.instagram }}<a href="{{ . }}" rel="me noopener" target="_blank">instagram</a>{{ end }}
|
||||
</address>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
{{ with .Site.Params.credit }}
|
||||
<footer class="credit">
|
||||
<p><a href="{{ .url }}" rel="noopener" target="_blank">{{ .text }}</a></p>
|
||||
</footer>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,15 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<meta name="description" content="{{ .Site.Params.intro }}">
|
||||
|
||||
<meta property="og:title" content="{{ .Site.Title }}">
|
||||
<meta property="og:description" content="{{ .Site.Params.intro }}">
|
||||
<meta property="og:type" content="website">
|
||||
{{ with .Site.Params.hero.image }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
|
||||
|
||||
<link rel="icon" href="data:,">
|
||||
{{ $css := resources.Get "css/main.css" | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $css.RelPermalink }}">
|
||||
</head>
|
||||
Reference in New Issue
Block a user