Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jpescador/hugo-future-imperfect.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/url-link.html')
-rw-r--r--layouts/shortcodes/url-link.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/shortcodes/url-link.html b/layouts/shortcodes/url-link.html
index 419c098..c2b5f5e 100644
--- a/layouts/shortcodes/url-link.html
+++ b/layouts/shortcodes/url-link.html
@@ -1,10 +1,10 @@
{{ $numOfParams := len .Params }}
{{ if and (ge $numOfParams 2) (le $numOfParams 3) }}
- {{ if eq $numOfParams 3 }}
- {{ $.Scratch.Set "target" (.Get 2) }}
- {{ else }}
- {{ $.Scratch.Set "target" "_blank" }}
- {{ end }}
+ {{ if eq $numOfParams 3 }}
+ {{ $.Scratch.Set "target" (.Get 2) }}
+ {{ else }}
+ {{ $.Scratch.Set "target" "_blank" }}
+ {{ end }}
- <a href="{{ .Get 1 }}" target='{{ $.Scratch.Get "target"}}'>{{ .Get 0 }}</a>
+ <a href="{{ .Get 1 }}" target='{{ $.Scratch.Get "target"}}'>{{ .Get 0 }}</a>
{{ end }}