diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-11 09:53:20 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-11 09:53:20 +0200 |
| commit | f45fe5f45917593edd5de2416efe4546d1699a5b (patch) | |
| tree | b3bc511a758c473013e5a560e8caddf2e2a1f1de | |
| parent | 0e5fe09b09bf9491732748520e6ad37b74453488 (diff) | |
| download | gohugo-theme-ed-f45fe5f45917593edd5de2416efe4546d1699a5b.tar.gz | |
Correct code style
| -rw-r--r-- | layouts/shortcodes/link.html | 14 |
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 --> |
