From 051248d78a645f10489cdbef6bb21c57ca7f6b3b Mon Sep 17 00:00:00 2001 From: Aroy-Art <39088602+Aroy-Art@users.noreply.github.com> Date: Wed, 28 Apr 2021 19:56:58 +0200 Subject: [PATCH] Added banner.html partial --- layouts/partials/banner.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 layouts/partials/banner.html diff --git a/layouts/partials/banner.html b/layouts/partials/banner.html new file mode 100644 index 0000000..01c3ecb --- /dev/null +++ b/layouts/partials/banner.html @@ -0,0 +1,27 @@ +{{ $data := index site.Data.banner }} + +{{ if $data.banner.enable }} +{{ with $data.banner }} +{{ "" | safeHTML }} +
+ + + +
+ {{ if .icon }} +
+ +
+ {{ end }} +

{{ .title | markdownify }}

+

{{ .content | markdownify }}

+ {{ if .button.enable }} + {{ with .button }} + {{ .label }} + {{ end }} + {{ end }} +
+
+{{ "" | safeHTML }} +{{ end }} +{{ end }}