Add retro theme

This commit is contained in:
2024-02-19 14:05:14 +00:00
parent 58987bfbdf
commit 04374cdfeb
17 changed files with 274 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
{{ $img := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) }}
{{ $width := .Get "width" }}
{{ $img = $img.Resize (print (default "640x" $width) " jpeg picture") }}
{{ $title := .Get "title" }}
{{ $class := .Get "class" }}
<img src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}" {{ if $title }}
alt="{{ $title }}" {{ end }}>

View File

@@ -0,0 +1,2 @@
<!-- raw html -->
{{.Inner}}