layouts: remove trailing newlines in markup overrides

These add nbsp characters that look weird in pages

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-04-13 19:09:28 +05:30
parent f0be40d519
commit b790347878
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<div class="image-caption">
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
<p>{{ .Text }}</p>
</div>
</div>

View File

@ -1 +1 @@
<a class="link" href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>
<a class="link" href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>