diff options
author | mms <michal@sapka.me> | 2024-05-25 22:10:55 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-05-25 22:10:55 +0200 |
commit | c1a74cc9d62515d0bc1c09522de223c32f2cfd18 (patch) | |
tree | db74591ef4a66988d9c20fd96bf8228556d3278c /layouts/partials | |
parent | 2d27ad1d9b96ace302ddef93e48d7b78863efa43 (diff) |
feat: tidy up BR menu
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/button-15.html | 2 | ||||
-rw-r--r-- | layouts/partials/button-31.html | 18 | ||||
l--------- | layouts/partials/homepage/.#nav.html | 1 | ||||
-rw-r--r-- | layouts/partials/menu/item.html | 3 |
4 files changed, 21 insertions, 3 deletions
diff --git a/layouts/partials/button-15.html b/layouts/partials/button-15.html index 2c26d78..b715d2a 100644 --- a/layouts/partials/button-15.html +++ b/layouts/partials/button-15.html @@ -15,4 +15,4 @@ " width="{{ $img1x.Width }}" height="{{ $img1x.Height }}"> -{{- if $.href }} </a> {{ end }} +{{- if $.href }}</a> {{ end }} diff --git a/layouts/partials/button-31.html b/layouts/partials/button-31.html new file mode 100644 index 0000000..7349c88 --- /dev/null +++ b/layouts/partials/button-31.html @@ -0,0 +1,18 @@ +{{- $file := .file }} +{{- $path := printf "webbuttons_31/%s" $file}} +{{- $img := resources.Get $path }} +{{- $img1x := $img.Resize "88x webp q90"}} +{{- $img2x := $img.Resize "176x webp q90"}} + +{{- if $.href }} <a href="{{ $.href }}"> {{ end }} + <img + class="webbutton" + alt="{{ $.alt }}" + src="{{ $img1x.Permalink }}" + srcset=" + {{ $img1x.Permalink }} 1x, + {{ $img2x.Permalink }} 2x + " + width="{{ $img1x.Width }}" + height="{{ $img1x.Height }}"> +{{- if $.href }}</a> {{ end }} diff --git a/layouts/partials/homepage/.#nav.html b/layouts/partials/homepage/.#nav.html new file mode 120000 index 0000000..4de3353 --- /dev/null +++ b/layouts/partials/homepage/.#nav.html @@ -0,0 +1 @@ +mms@voyager.29834:1715624266
\ No newline at end of file diff --git a/layouts/partials/menu/item.html b/layouts/partials/menu/item.html index adc8d55..9802c6f 100644 --- a/layouts/partials/menu/item.html +++ b/layouts/partials/menu/item.html @@ -21,8 +21,7 @@ {{$item.Pre}} <b> <a {{ if $item.Params.forcedId }}id="{{ $item.Params.forcedId }}"{{ end }} - href="{{ $item.URL }}">{{ $item.Name }} - </a></b> + href="{{ $item.URL }}">{{ $item.Name }}</a></b> {{- partial "menu/new-or-up.html" (dict "page" $pageItem) }} {{ $item.Post }} |