vault page

This commit is contained in:
2024-12-07 16:06:52 +00:00
parent 16cae0ddcb
commit f91c80ddaf
3 changed files with 11 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
{{ $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 -}}
{{- with $.Text }}<figcaption>{{ . }}</figcaption>{{ end -}}
</figure>
{{ end }}