1
Fork 0
This commit is contained in:
MMaker 2025-12-02 23:49:51 -05:00
commit cf7a27bfa1
Signed by: mmaker
GPG key ID: CCE79B8FEDA40FB2
225 changed files with 3580 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<div class="image-container">
{{ $src := .Get "src" }}
{{ if hasPrefix $src "/" }}
<img src='{{ $src }}' title='{{ .Get "caption" | markdownify }}' />
{{ else }}
{{ $img := .Page.Resources.GetMatch $src }}
{{ if $img }}
<img src='{{ $img.RelPermalink }}' title='{{ .Get "caption" | markdownify }}' />
{{ else }}
<img src='{{ $src }}' title='{{ .Get "caption" | markdownify }}' />
{{ end }}
{{ end }}
<p>{{ .Get "caption" | markdownify }}</p>
</div>