From e8dd384c73b32a7e92ebe5f08c015f8ac1da78d0 Mon Sep 17 00:00:00 2001 From: mms Date: Mon, 10 Jun 2024 22:01:04 +0200 Subject: feat: UH artwork --- layouts/brain-rot/.#baseof.html | 1 - layouts/shortcodes/image.html | 2 + layouts/unix-history/.#single.html | 1 + layouts/unix-history/baseof.html | 242 +++++++++++++++++++++---------------- layouts/unix-history/list.html | 33 +++++ layouts/unix-history/single.html | 31 +++++ 6 files changed, 202 insertions(+), 108 deletions(-) delete mode 120000 layouts/brain-rot/.#baseof.html create mode 120000 layouts/unix-history/.#single.html create mode 100644 layouts/unix-history/list.html create mode 100644 layouts/unix-history/single.html (limited to 'layouts') diff --git a/layouts/brain-rot/.#baseof.html b/layouts/brain-rot/.#baseof.html deleted file mode 120000 index 1a87e03..0000000 --- a/layouts/brain-rot/.#baseof.html +++ /dev/null @@ -1 +0,0 @@ -mms@voyager.2829:1717002207 \ No newline at end of file diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html index 2677b2c..d538fde 100644 --- a/layouts/shortcodes/image.html +++ b/layouts/shortcodes/image.html @@ -43,6 +43,7 @@ loading="lazy" > + {{ if not (strings.Contains $caption "noop") }}
{{ $caption }} @@ -50,5 +51,6 @@ [source] {{ end }}
+ {{ end }} diff --git a/layouts/unix-history/.#single.html b/layouts/unix-history/.#single.html new file mode 120000 index 0000000..d7699a2 --- /dev/null +++ b/layouts/unix-history/.#single.html @@ -0,0 +1 @@ +mms@voyager.25629:1717856541 \ No newline at end of file diff --git a/layouts/unix-history/baseof.html b/layouts/unix-history/baseof.html index 19e557e..b5390b9 100644 --- a/layouts/unix-history/baseof.html +++ b/layouts/unix-history/baseof.html @@ -3,126 +3,154 @@ - {{ partial "header/meta" . }} - {{- $bg := resources.Get "unix-history/bg.gif" -}} - - + .footnotes p { + margin: 0; + padding: 0; + } +
- -
+ {{ block "head" . }} + {{ end }} -

{{ .Title }}

+

{{ .Page.Params.shortname }}

@@ -131,7 +159,7 @@ Work in progress This text is still work in progress and will be updated. - + {{ block "main" . }} {{ end }} diff --git a/layouts/unix-history/list.html b/layouts/unix-history/list.html new file mode 100644 index 0000000..6295d15 --- /dev/null +++ b/layouts/unix-history/list.html @@ -0,0 +1,33 @@ +{{ define "head"}} +Back +
+{{end}} + + + +{{ define "main" }} + +{{if .Page.Content}} + {{ .Page.Content }} + {{- if .Params.primary_menu }} + {{ partial "single/bottom_nav.html" (dict "menuID" .Page.Params.primary_menu "page" .) }} + {{- end }} + + {{ partial "single/dates.html" . }} +{{ else }} + + {{ if in .Page.Params.Categories "blog" }} + {{ partial "partials/blog_index.html" . }} + {{ else if in .Page.Params.Categories "article" }} + {{ partial "partials/article_index.html" . }} + {{ else }} + +

Articles

+ {{ range .Data.Pages }} + {{ partial "partials/article_list_item.html" . }} + {{ end }} + + {{ end }} +{{end}} + +{{ end }} diff --git a/layouts/unix-history/single.html b/layouts/unix-history/single.html new file mode 100644 index 0000000..fa8673b --- /dev/null +++ b/layouts/unix-history/single.html @@ -0,0 +1,31 @@ +{{ define "head" }} + +{{- $header_rect := resources.Get "unix-history/header-top.png" }} +{{- $header_rect_180 := $header_rect.Resize "50x webp q90"}} + + +History of Unix +
+ +{{ end }} + +{{ define "main" }} + +
+ {{ .Page.Content }} +
+ +{{- if .Params.primary_menu }} + {{ partial "single/bottom_nav.html" (dict "menuID" .Page.Params.primary_menu "page" .) }} +{{- end }} + +{{ partial "single/dates.html" . }} + +{{- end }} -- cgit v1.2.3