From dfe16bfc82c341294d10a14faccb51f1ff73db8d Mon Sep 17 00:00:00 2001 From: Emiliano Tortorella Date: Tue, 29 Jan 2019 18:51:53 -0500 Subject: [PATCH] Some layout fixes. --- layouts/index.html | 4 +++- layouts/partials/page-header.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 1f079a9..66c0761 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ define "main" }}
{{ .Content }} -
+ {{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}} {{ $mainSections := .Site.Params.mainSections | default (slice "post") }} {{/* Create a variable with that section to use in multiple places. */}} @@ -61,4 +61,6 @@ {{ end }} {{ end }} + + {{ end }} diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index 5355b64..e37b7e2 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -5,7 +5,7 @@
{{ partial "site-navigation.html" . }} -
+
{{ if .Site.Params.post_header_show_title }}

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

{{ with .Params.description }}