diff options
author | mms <michal@sapka.me> | 2024-04-09 16:25:51 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-04-09 16:25:51 +0200 |
commit | 18591bdb1f6964d72f345c32ebf685860dccb8db (patch) | |
tree | 662966ce2696bc6b6db8f6dd07c7a477f1f67cfb /layouts/partials/homepage/startrek.html | |
parent | c5d55f14f99c4595b18c1fbed77a6be52c162814 (diff) |
feat: trek to hp:
:
Diffstat (limited to 'layouts/partials/homepage/startrek.html')
-rw-r--r-- | layouts/partials/homepage/startrek.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/layouts/partials/homepage/startrek.html b/layouts/partials/homepage/startrek.html new file mode 100644 index 0000000..296be4b --- /dev/null +++ b/layouts/partials/homepage/startrek.html @@ -0,0 +1,23 @@ +{{- $file := "star-trek-voyager-transparent.png" }} +{{- $path := printf "content_images/%s" $file}} +{{- $img := resources.Get $path }} +{{- $img1x := $img.Resize "150x webp" }} +{{- $img2x := $img.Resize "300x webp" }} + +<section class="star-trek" style="display: flow-root"> + <h2 id="star-trek">Star Trek</h2> + <img + class="vert-move" + style="float: right; max-width: 20%;" + src="{{ $img1x.Permalink }}" + srcset=" + {{ $img1x.Permalink }} 1x, + {{ $img2x.Permalink }} 2x + " + width="{{ $img1x.Width }}" + height="{{ $img1x.Height }}" + > + + {{ partial "menu.html" (dict "menuID" "star-trek" "page" .) }} +</section> + |