From a5c72664f2d049eae12548dfb5030ee6ace7dcbb Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 28 Jan 2020 23:18:02 +0100 Subject: [PATCH] hide empty page header on mobile view --- layouts/partials/page-header.html | 2 +- src/sass/_base.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index ba7c74a..590beab 100644 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -16,7 +16,7 @@ {{end}} {{end}} -
+
{{$showBreadcrumb := (and (not .Page.Params.geekdocBreadcrumb) (not .Site.Params.geekdocBreadcrumb))}} {{if $showBreadcrumb}} diff --git a/src/sass/_base.scss b/src/sass/_base.scss index cfa6505..6d02488 100644 --- a/src/sass/_base.scss +++ b/src/sass/_base.scss @@ -457,7 +457,7 @@ img { } } - .gdoc-page__header .breadcrumb { + .gdoc-page__header .breadcrumb, .hidden-mobile { display: none; }