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

github.com/asurbernardo/amperage.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsur <asur@asurbernardo.com>2020-07-26 21:31:29 +0300
committerAsur <asur@asurbernardo.com>2020-07-26 21:31:29 +0300
commitd982c51ee140c2777a6406cbcc32e82cab58b9a6 (patch)
tree7143fc8d99b9b874dd9922e32ed07eda2d4fd37b
parent50c4a33c4806c279c22953fe451f39f26016174f (diff)
Do not print blank spaces on templates
-rw-r--r--layouts/_default/_markup/render-image.html2
-rw-r--r--layouts/_default/_markup/render-link.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index f574d0f..3de31eb 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1,7 +1,7 @@
<figure class="figure {{ with .Title }}figure--with-caption{{ end }}">
{{ with .Title }}
<figcaption class="figure__caption">
- {{ . }}
+ {{- . -}}
</figcaption>
{{ end }}
{{ $resource := resources.Get .Destination }}
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html
index 42dfb69..1e76990 100644
--- a/layouts/_default/_markup/render-link.html
+++ b/layouts/_default/_markup/render-link.html
@@ -5,5 +5,5 @@
{{ if hasPrefix $url $baseUrl }} data-rel="prefetch"
{{else}} target="_blank" rel="nofollow noopener noreferrer" {{ end }}
{{ with .Title}} title="{{ . }}"{{ end }}>
- {{ .Text | safeHTML }}
+ {{- .Text | safeHTML -}}
</a> \ No newline at end of file