diff --git a/archetypes/home.md b/archetypes/home.md index 7a62d2f..31c6b96 100644 --- a/archetypes/home.md +++ b/archetypes/home.md @@ -15,6 +15,7 @@ sections: link: # /
/ icon: # localpath from assets/icons/ w/o ext # ... +vaultPageLink: # // notice: # generator settings, no need to edit diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index ea0b229..e2a3b72 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,7 +1,6 @@ -{{ $hook_ctx := . }} {{ with .Page.Resources.Get .Destination | resources.Copy (replaceRE "([^/]*)$" "_$1" (path.Join .Page.Path .Destination)) | fingerprint }}
- {{- with $hook_ctx.Text }}
{{ . }}
{{ end -}} + {{- with $.Text }}
{{ . }}
{{ end -}}
{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index cf03069..b9ed56e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,10 +4,12 @@ {{ if .Title }}

{{ .Title }}

{{ end }} {{ if .Description }}

{{ .Description }}

{{ end }} {{ partial "taxo_of_single.html" . }} + {{ if .Lastmod }}
mtime={{ .Lastmod.Format .Site.Params.dateFormat }} archived={{ default false .Params.archived }}
+ {{ end }} {{- end -}} @@ -30,8 +32,11 @@ {{- end -}} {{- define "footer" -}} - +
+ {{ with .Site.GetPage .Site.Home.Params.vaultPageLink}} + {{ if not (.Eq $.Page) }} + save or verify + {{ end }} + {{ end }} +
{{- end -}}