summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes/link.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-11 09:53:20 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-11 09:53:20 +0200
commitf45fe5f45917593edd5de2416efe4546d1699a5b (patch)
treeb3bc511a758c473013e5a560e8caddf2e2a1f1de /layouts/shortcodes/link.html
parent0e5fe09b09bf9491732748520e6ad37b74453488 (diff)
downloadgohugo-theme-ed-f45fe5f45917593edd5de2416efe4546d1699a5b.tar.gz
Correct code style
Diffstat (limited to 'layouts/shortcodes/link.html')
-rw-r--r--layouts/shortcodes/link.html14
1 files changed, 6 insertions, 8 deletions
diff --git a/layouts/shortcodes/link.html b/layouts/shortcodes/link.html
index ff84a6c..c42400b 100644
--- a/layouts/shortcodes/link.html
+++ b/layouts/shortcodes/link.html
@@ -1,10 +1,8 @@
-<!-- editorconfig-checker-disable -->
<a href="{{ .Get "src" | absURL }}"
- {{- with .Get "hreflang" }} hreflang="{{ . }}"{{ end }}
- {{- with .Get "title" }} title="{{ . }}"{{ end }}
- {{- with .Get "class" }} class="{{ . }}"{{ end }}
- {{- with .Get "target" }} target="{{ . }}"{{ end }}
- {{- with .Get "rel" }} rel="{{ . }}"{{ end }}>
- {{- .Inner -}}
+ {{- with .Get "hreflang" }} hreflang="{{ . }}"{{ end }}
+ {{- with .Get "title" }} title="{{ . }}"{{ end }}
+ {{- with .Get "class" }} class="{{ . }}"{{ end }}
+ {{- with .Get "target" }} target="{{ . }}"{{ end }}
+ {{- with .Get "rel" }} rel="{{ . }}"{{ end }}>
+ {{- .Inner -}}
</a>
-<!-- editorconfig-checker-enable -->