'embed' shortcode: provide backlink with anchor (fragment)

This commit is contained in:
Helmut Merz 2023-10-26 08:57:05 +02:00
parent 17e9e85588
commit 0f05d22902

View file

@ -7,7 +7,8 @@
{{- $btitle := .Get "btitle" -}}
{{- range $pages -}}
{{- .Scratch.Add "backlinks" (slice (dict "page" $this "btext" $btext "btitle" $btitle)) -}}
{{- $anchor := anchorize .Title -}}
{{- .Scratch.Add "backlinks" (slice (dict "anchor" $anchor "page" $this "btext" $btext "btitle" $btitle)) -}}
### [{{ .Title }}]({{ .Permalink }})
{{ .RenderShortcodes }}