From 59d94de0239491568521b8946f5343d9c3e1e37c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 5 Feb 2020 10:13:04 +0100 Subject: [PATCH] fix page-header conditions --- CHANGELOG.md | 1 + layouts/partials/page-header.html | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6ca592..0130b81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,3 @@ - BUGFIX - fix default settings for some config parameters + - fix page-header conditions diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index 957674a..22dfd6a 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -16,8 +16,9 @@ {{ end }} {{ end }} -
- {{ $showBreadcrumb := (and (default true .Page.Params.geekdocBreadcrumb) (default true .Site.Params.geekdocBreadcrumb)) }} +{{ $showBreadcrumb := (and (default true .Page.Params.geekdocBreadcrumb) (default true .Site.Params.geekdocBreadcrumb)) }} +{{ $showEdit := (and ($.Scratch.Get "geekdocFilePath") $geekdocRepo $geekdocEditPath) }} +