From f45fe5f45917593edd5de2416efe4546d1699a5b Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 11 Jul 2022 09:53:20 +0200 Subject: Correct code style --- layouts/shortcodes/link.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'layouts/shortcodes/link.html') 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 @@ - - {{- .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 -}} - -- cgit v1.2.3