Chomp trailing newline in shortcodes.
This commit is contained in:
parent
6ef0b26e1c
commit
5bc5ce9a58
1 changed files with 5 additions and 2 deletions
|
|
@ -3,3 +3,4 @@
|
|||
{{ $src := .Get "src" -}}
|
||||
{{ $text := .Get "text" -}}
|
||||
<a class="button{{ with $class }} {{ . }}{{ end }}" href="{{ $src }}"{{ if $newtab }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ $text }}</a>
|
||||
{{- /* chomp trailing newline */ -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue