From c58a9faa79196f6ccecec374c2e178f042e40ffe Mon Sep 17 00:00:00 2001 From: Aaron Crawfis Date: Mon, 5 Apr 2021 13:47:28 -0700 Subject: [PATCH] Update to parameter instead of inner --- daprdocs/layouts/shortcodes/button.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daprdocs/layouts/shortcodes/button.html b/daprdocs/layouts/shortcodes/button.html index d931eab64..5ab0ddc9b 100644 --- a/daprdocs/layouts/shortcodes/button.html +++ b/daprdocs/layouts/shortcodes/button.html @@ -1,7 +1,8 @@ {{ $color := .Get "color" | default "primary" }} {{ $page := .Get "page" }} {{ $link := .Get "link" | default "#" }} +{{ $text := .Get "text" }} {{- if $page -}}{{- $link = ref . $page -}}{{- end -}} -{{ .Inner | replaceRE "(.*)\n" "$1" }} +{{ $text }}