From 6057b9131282e80cfb239167ae3dc9557f2ec66e Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Fri, 18 Sep 2026 18:32:10 +0800 Subject: Resolve links to page bundle resources --- layouts/_default/_markup/render-link.html | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 layouts/_default/_markup/render-link.html (limited to 'layouts') diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..e6667f9 --- /dev/null +++ b/layouts/_default/_markup/render-link.html @@ -0,0 +1,5 @@ +{{- $destination := .Destination -}} +{{- with .Page.Resources.GetMatch .Destination -}} + {{- $destination = .RelPermalink -}} +{{- end -}} +{{ .Text | safeHTML }} -- cgit v1.2.3