images, deterministic caching

This commit is contained in:
yrzam committed 2024-12-04 02:01:12 +00:00
1 parent fa262d3098
commit 0634e7a3f7
8 files changed
+62 -22

No files matched your search

@@ -0,0 +1,7 @@
{{ $hook_ctx := . }}
{{ with .Page.Resources.Get .Destination | resources.Copy (replaceRE "([^/]*)$" "_$1" (path.Join .Page.Path .Destination)) | fingerprint }}
<figure>
<a href="{{ .RelPermalink }}"><img src="{{ .RelPermalink }}"></a>
{{- with $hook_ctx.Text }}<figcaption>{{ . }}</figcaption>{{ end -}}
</figure>
{{ end }}