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

github.com/nodejh/hugo-theme-cactus-plus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Bock <mr.axel.bock@gmail.com>2021-08-16 15:02:50 +0300
committerAxel Bock <mr.axel.bock@gmail.com>2021-08-16 15:02:50 +0300
commit7af8b5ff2ecfffb770489d5fdbd39d94da17f072 (patch)
tree2abb2d27c17b4476ba2f39f362a1e7ba857b53de
parent4ff6baaf6c61b8cf48eaaa331727570d03fd622d (diff)
fix unwanted spaces in link rendering
-rw-r--r--layouts/_default/_markup/render-link.html14
1 files changed, 1 insertions, 13 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html
index 2a144d8..70ac35e 100644
--- a/layouts/_default/_markup/render-link.html
+++ b/layouts/_default/_markup/render-link.html
@@ -1,13 +1 @@
-<a
- href="{{ .Destination | safeURL }}"
- {{ with .Title}}
- title="{{ . }}"
- {{ end }}
-
- {{ if strings.HasPrefix .Destination "http" }}
- target="_blank"
- rel="noopener"
- {{ end }}
->
- {{ .Text | safeHTML }}
-</a> \ No newline at end of file
+<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}" {{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a> \ No newline at end of file