From 9be3215a9ed40824857750149835ad20ab95505d Mon Sep 17 00:00:00 2001 From: Emiliano Tortorella Date: Sat, 10 Nov 2018 23:16:11 -0400 Subject: [PATCH] Post header parametrization added: post_header_class (so I could change it to "cover bg-center") post_header_div_class (so I could change it to "bg-black-60") post_header_show_title (so I could display the post title only once, down in the post) --- layouts/partials/page-header.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index 6d638d2..5355b64 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -2,15 +2,17 @@ {{ if $featured_image }} {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} {{ $featured_image := (trim $featured_image "/") | absURL }} -
-
+
+
{{ partial "site-navigation.html" . }}
+ {{ if .Site.Params.post_header_show_title }}

{{ .Title | default .Site.Title }}

- {{ with .Params.description }} -

- {{ . }} -

+ {{ with .Params.description }} +

+ {{ . }} +

+ {{ end }} {{ end }}