summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes/link.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-15 17:18:54 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-15 17:18:54 +0200
commitd40eaac31f28c7386cc481141b104e9436fd0133 (patch)
tree72d77a7acbf82aa05c9e49e6af1834de1af5f372 /layouts/shortcodes/link.html
parentdb5d361b777e3669b1169dc8f7f68c89b43e0bd3 (diff)
downloadgohugo-theme-ed-d40eaac31f28c7386cc481141b104e9436fd0133.tar.gz
Fix link shortcode
Diffstat (limited to 'layouts/shortcodes/link.html')
-rw-r--r--layouts/shortcodes/link.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/shortcodes/link.html b/layouts/shortcodes/link.html
index e347adc..b6993ec 100644
--- a/layouts/shortcodes/link.html
+++ b/layouts/shortcodes/link.html
@@ -1 +1 @@
-<a href="{{ .Get 0 | absURL }}" {{- with .Get "title" }} title="{{.}}"{{ end }} {{- with .Get "class" }} class="{{.}}"{{ end }} {{- with .Get "target" }} target="{{.}}"{{ end }} {{- with .Get "rel" }} rel="{{.}}"{{ end }}>{{ .Inner }}</a>
+<a href="{{ .Get "src" | absURL }}" {{- with .Get "title" }} title="{{.}}"{{ end }} {{- with .Get "class" }} class="{{.}}"{{ end }} {{- with .Get "target" }} target="{{.}}"{{ end }} {{- with .Get "rel" }} rel="{{.}}"{{ end }}>{{ .Inner }}</a>