long time no update :o

This commit is contained in:
Vri 🌈 2022-12-24 14:59:52 +01:00
parent 33fb7cb34c
commit c974ac8f1a
Signed by: vrifox
GPG key ID: D40098E5B60B2197
29 changed files with 280 additions and 147 deletions

View file

@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="{{ .Page.Lang }}">
<head>
<title>{{ with .Title }} {{ . }} {{ end }}{{ .Site.Title }}</title>
{{- $style := resources.Get "/style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }}
@ -8,9 +8,9 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<body id="{{ .Page.Title }}">
{{- block "header" . }}{{ end }}
{{ partial "nav.html" . }}
{{ partial "sidebar.html" . }}
{{- block "main" . }}{{ end }}
{{ partial "footer.html" . }}
</body>

View file

@ -1,7 +1,7 @@
{{- define "main" }}
<main>
{{- if eq .Params.type "post" }}
<p class="date-published" title="{{ .Date.Format "2. January 2006, 15:04 MST" }}">{{ .Date.Day }}. {{ if eq .Params.lang "de"}} {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ else }} {{ .Date.Month }} {{ end }} {{ .Date.Year }}</p>
<p class="date-published" title="{{ .Date | time.Format "2. January 2006, 15:04 MST" }}">{{ .Date | time.Format "2. January 2006" }}</p>
{{- end }}
<h1 class="title">{{ .Title }}</h1>
{{ .Content -}}