From f10a1070096953eaa3668ca660bffac193235ed2 Mon Sep 17 00:00:00 2001 From: mms Date: Sat, 14 Sep 2024 22:34:42 +0200 Subject: feat: move out brainrots --- layouts/brain-rot/baseof.html | 248 ++-------------------------------------- layouts/brain-rot/list.html | 2 + layouts/brain-rot/redirect.html | 9 ++ layouts/brain-rot/single.html | 2 + layouts/unix-history/list.html | 31 ----- 5 files changed, 22 insertions(+), 270 deletions(-) create mode 100644 layouts/brain-rot/list.html create mode 100644 layouts/brain-rot/redirect.html create mode 100644 layouts/brain-rot/single.html (limited to 'layouts') diff --git a/layouts/brain-rot/baseof.html b/layouts/brain-rot/baseof.html index 4610c79..3195652 100644 --- a/layouts/brain-rot/baseof.html +++ b/layouts/brain-rot/baseof.html @@ -1,243 +1,13 @@ +{{ block "main" . }} +{{ end }} + - + - - {{ .Page.Title }} | Michal's Brain Rots - - - - {{- $header_rect := resources.Get "/icons/apple-touch-icon.png" }} - {{- $header_rect_180 := $header_rect.Resize "180x webp q90"}} - - - {{- $header_rect_32 := $header_rect.Resize "32x webp q90"}} - - - {{- $header_rect_16 := $header_rect.Resize "16x webp q90"}} - - - - - - - - - {{- $imageUrl := default "logos/right.png" .Params.image }} - {{- $image := resources.Get $imageUrl }} - - - - - - - - - - - - - - {{- $bg := resources.Get "brain-rot/bg-stars.jpg" -}} - {{- if strings.Contains .Permalink "witcher" -}} - {{- $bg = resources.Get "brain-rot/bg-witcher.jpg" -}} - {{- end -}} - - - - -
-
-
- -
- -
- -

{{ .Page.Title }}

-
- - -
- {{ block "main" . }} - {{ end }} -
+ {{ .Title }} + + + + -
- {{ partial "buttons/valid_html" . }} - {{ partial "button-31" (dict "file" "rss.gif" "alt" "RSS Feed" "href" "https://michal.sapka.me/brain-rot/index.xml") }} - {{ partial "buttons/openbsd" . }} -
-
-
- diff --git a/layouts/brain-rot/list.html b/layouts/brain-rot/list.html new file mode 100644 index 0000000..e4e4a83 --- /dev/null +++ b/layouts/brain-rot/list.html @@ -0,0 +1,2 @@ +{{ define "main" }} +{{ end }} diff --git a/layouts/brain-rot/redirect.html b/layouts/brain-rot/redirect.html new file mode 100644 index 0000000..599d57b --- /dev/null +++ b/layouts/brain-rot/redirect.html @@ -0,0 +1,9 @@ + + + + {{ .Title }} + + + + + diff --git a/layouts/brain-rot/single.html b/layouts/brain-rot/single.html new file mode 100644 index 0000000..e4e4a83 --- /dev/null +++ b/layouts/brain-rot/single.html @@ -0,0 +1,2 @@ +{{ define "main" }} +{{ end }} diff --git a/layouts/unix-history/list.html b/layouts/unix-history/list.html index 6295d15..e4e4a83 100644 --- a/layouts/unix-history/list.html +++ b/layouts/unix-history/list.html @@ -1,33 +1,2 @@ -{{ 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 }} -- cgit v1.2.3