aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-link.html5
1 files changed, 5 insertions, 0 deletions
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 -}}
+<a href="{{ $destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>