diff --git a/www/assets/css/theme.css b/www/assets/css/theme.css index 45cf2615..1644de7e 100644 --- a/www/assets/css/theme.css +++ b/www/assets/css/theme.css @@ -67,6 +67,12 @@ html { background-color: var(--bg-root); } +.quack { + background-image: url("data:image/svg+xml,🦆"); + background-repeat: repeat; + background-size: 10rem; +} + body { display: flex; flex-direction: column; diff --git a/www/layouts/404.html b/www/layouts/404.html new file mode 100644 index 00000000..5607bd91 --- /dev/null +++ b/www/layouts/404.html @@ -0,0 +1,15 @@ +{{ define "headtitle" -}} + {{ printf "%s | %s" "404" site.Title }} +{{- end }} + +{{ define "title" }}Il semblerait qu’il y ait un quack… 🦆{{ end }} + +{{ define "main" }} +

+ La page n’existe pas, mais vous pouvez retourner à l’accueil. +

+ + +{{ end }} diff --git a/www/layouts/_default/baseof.html b/www/layouts/_default/baseof.html index ce9613a2..6cf96b8b 100644 --- a/www/layouts/_default/baseof.html +++ b/www/layouts/_default/baseof.html @@ -1,17 +1,38 @@ - + + + + {{- block "headtitle" . -}} + {{- if .IsHome -}} + {{ site.Title }} + {{- else -}} + {{ printf "%s | %s" .Title site.Title }} + {{- end -}} + {{- end -}} + + {{ partial "head.html" . }} +
{{ partial "header.html" . }} +

+ {{- block "title" . -}} + {{ .Title }} + {{- end -}} +

+
{{ block "main" . }}{{ end }}
+ + diff --git a/www/layouts/partials/head.html b/www/layouts/partials/head.html index 86fcbbab..5f62db76 100644 --- a/www/layouts/partials/head.html +++ b/www/layouts/partials/head.html @@ -1,6 +1,5 @@ -{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} diff --git a/www/layouts/partials/header.html b/www/layouts/partials/header.html index 2813612c..078bc2da 100644 --- a/www/layouts/partials/header.html +++ b/www/layouts/partials/header.html @@ -14,5 +14,3 @@ {{ partial "menu.html" (dict "menuID" "main" "page" .) }} - -

{{ .Title }}