hide empty page header on mobile view

This commit is contained in:
Robert Kaussow 2020-01-28 23:18:02 +01:00
parent 7abcc895a0
commit a5c72664f2
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@
{{end}}
{{end}}
<div class="gdoc-page__header flex justify-between" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<div class="gdoc-page__header flex justify-between{{ if not $geekdocRepo }} hidden-mobile{{ end }}" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
{{$showBreadcrumb := (and (not .Page.Params.geekdocBreadcrumb) (not .Site.Params.geekdocBreadcrumb))}}
<span>
{{if $showBreadcrumb}}

View file

@ -457,7 +457,7 @@ img {
}
}
.gdoc-page__header .breadcrumb {
.gdoc-page__header .breadcrumb, .hidden-mobile {
display: none;
}