From c4eac50c4680998f4df990c45628b2a2f798ee55 Mon Sep 17 00:00:00 2001 From: mms Date: Tue, 7 May 2024 09:38:02 +0200 Subject: feat: megrim --- layouts/partials/homepage/nav.html | 50 ++++++++++++++++++++++++++++++++++---- layouts/partials/menu/item.html | 7 +++++- 2 files changed, 51 insertions(+), 6 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/homepage/nav.html b/layouts/partials/homepage/nav.html index 69e9e65..829323e 100644 --- a/layouts/partials/homepage/nav.html +++ b/layouts/partials/homepage/nav.html @@ -1,8 +1,3 @@ -{{- $file := "me.png" }} -{{- $path := printf "content_images/%s" $file}} -{{- $img := resources.Get $path }} -{{- $img1x := $img.Resize "150x webp" }} -{{- $img2x := $img.Resize "300x webp" }}

About

@@ -14,9 +9,35 @@ BSD and Emacs are quite self-explanatory. I take special fondness of Star Trek so it is a section of its own. I also have a dedicated blog, but this site is not a blog. + +{{- $file := "me.png" }} +{{- $path := printf "content_images/%s" $file}} +{{- $img := resources.Get $path }} +{{- $img1x := $img.Resize "150x webp" }} +{{- $img2x := $img.Resize "300x webp" }} + Michal + +{{- $file := "me-grim.png" }} +{{- $path := printf "content_images/%s" $file}} +{{- $img := resources.Get $path }} +{{- $img1x := $img.Resize "150x webp" }} +{{- $img2x := $img.Resize "300x webp" }} + + {{ partial "menu.html" (dict "menuID" "main-nav" "page" .) }} + + +
diff --git a/layouts/partials/menu/item.html b/layouts/partials/menu/item.html index f50d604..adc8d55 100644 --- a/layouts/partials/menu/item.html +++ b/layouts/partials/menu/item.html @@ -18,7 +18,12 @@ {{- else if $item.Params.placeholder }} {{ $item.Pre }}{{$item.Name }}{{ $item.Post }} {{- else}} - {{$item.Pre}} {{ $item.Name }} + {{$item.Pre}} + {{ $item.Name }} + + {{- partial "menu/new-or-up.html" (dict "page" $pageItem) }} {{ $item.Post }} {{- end}} -- cgit v1.2.3