Add regex to button

This commit is contained in:
Aaron Crawfis 2021-04-05 13:35:37 -07:00
parent eace5730f1
commit 08b8bf0c15
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@
{{- if $page -}}{{- $link = ref . $page -}}{{- end -}}
<a class="btn btn-{{ $color }}" href="{{ $link }}" role="button">{{ .Inner }}</a>
<a class="btn btn-{{ $color }}" href="{{ $link }}" role="button">{{ .Inner | replaceRE "(.*)\n" "$1" }}</a>