diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-15 17:18:54 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-15 17:18:54 +0200 |
| commit | d40eaac31f28c7386cc481141b104e9436fd0133 (patch) | |
| tree | 72d77a7acbf82aa05c9e49e6af1834de1af5f372 | |
| parent | db5d361b777e3669b1169dc8f7f68c89b43e0bd3 (diff) | |
| download | gohugo-theme-ed-d40eaac31f28c7386cc481141b104e9436fd0133.tar.gz | |
Fix link shortcode
| -rw-r--r-- | layouts/shortcodes/link.html | 2 |
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> |
