From 669a35a3eb3db6420f47a1098a79d07ab38abbcc Mon Sep 17 00:00:00 2001 From: mms Date: Sat, 15 Jun 2024 19:54:48 +0200 Subject: feat: cool emacs, pub preview --- layouts/cool-emacs/baseof.html | 149 +++++++++++++++++++++++++++++++++++++++-- layouts/cool-emacs/list.html | 33 +++++++++ layouts/cool-emacs/single.html | 31 +++++++++ 3 files changed, 208 insertions(+), 5 deletions(-) create mode 100644 layouts/cool-emacs/list.html create mode 100644 layouts/cool-emacs/single.html (limited to 'layouts/cool-emacs') diff --git a/layouts/cool-emacs/baseof.html b/layouts/cool-emacs/baseof.html index 41f693d..5608fea 100644 --- a/layouts/cool-emacs/baseof.html +++ b/layouts/cool-emacs/baseof.html @@ -1,8 +1,147 @@ - + + + + + + {{ .Page.Title }} | Cool Emacs + + + + {{- $header_rect := resources.Get "unix-history/header-rect.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"}} + + + + + + + + + + + + + + + + + + + + {{- $bg := resources.Get "cool-emacs/bg.gif" -}} + + + + +
+
+ {{ block "head" . }} + {{ end }} -
- Cool Emacs -
-

{{ .Title }}

+
+

{{ .Title }}

+ + {{ block "main" . }} + {{ end }} +
+ +
+
+ Website created and operated by MichaƂ +
+ {{ partial "buttons/valid_html" . }} + {{ partial "buttons/emacs" . }} + {{ partial "buttons/openbsd" . }} +
+
+
+ diff --git a/layouts/cool-emacs/list.html b/layouts/cool-emacs/list.html new file mode 100644 index 0000000..6295d15 --- /dev/null +++ b/layouts/cool-emacs/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/cool-emacs/single.html b/layouts/cool-emacs/single.html new file mode 100644 index 0000000..855124b --- /dev/null +++ b/layouts/cool-emacs/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"}} + + + + + + + + + +Cool Emacs +
+ +{{ 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