From 2605164743bdc37819958d7f1e100fe4d531630c Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 15 Oct 2017 17:38:31 +0100 Subject: [PATCH] custom widget: Support full width no-title mode --- layouts/partials/widgets/custom.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/widgets/custom.html b/layouts/partials/widgets/custom.html index b6abfcef..fec5a9c7 100644 --- a/layouts/partials/widgets/custom.html +++ b/layouts/partials/widgets/custom.html @@ -2,6 +2,7 @@
+ {{ if $page.Title }}

{{ with $page.Title }}{{ . | markdownify }}{{ end }}

{{ with $page.Params.subtitle }}

{{ . | markdownify }}

{{ end }} @@ -9,4 +10,9 @@
{{ $page.Content }}
+ {{ else }} +
+ {{ $page.Content }} +
+ {{ end }}