remove menu button from error page

This commit is contained in:
Robert Kaussow 2020-02-24 22:11:13 +01:00
parent 6a98094939
commit 8e3958bd09
5 changed files with 10 additions and 14 deletions

View File

@ -1,7 +1,2 @@
* FEATURE
* add `toc-tree` shortcode to generate toc from filetree
* BUGFIX * BUGFIX
* fix wrong `geekdocToC` level handling * remove mobile menu button on error page
* DOCUMENTATION
* add missing `toc` shortcode documentation
* add new `toc-tree` documentation and demo

View File

@ -9,11 +9,10 @@ Geekdoc is a simple Hugo theme for documentations. This work is inspired and par
![Screenshot Desktop](local_media/desktop.png) ![Screenshot Desktop](local_media/desktop.png)
## License
### License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
### Maintainers and Contributors ## Maintainers and Contributors
[Robert Kaussow](https://github.com/xoxys) [Robert Kaussow](https://github.com/xoxys)

View File

@ -9,7 +9,7 @@
{{ partial "svg-icon-symbols" . }} {{ partial "svg-icon-symbols" . }}
<div class="wrapper"> <div class="wrapper">
{{ partial "site-header" . }} {{ partial "site-header" (dict "Root" . "MenuEnabled" false) }}
<main class="gdoc-error flex-even"> <main class="gdoc-error flex-even">
<div class="flex align-center justify-center"> <div class="flex align-center justify-center">

View File

@ -10,7 +10,7 @@
<div class="wrapper"> <div class="wrapper">
<input type="checkbox" class="hidden" id="menu-control" /> <input type="checkbox" class="hidden" id="menu-control" />
{{ partial "site-header" . }} {{ partial "site-header" (dict "Root" . "MenuEnabled" true) }}
<main class="container flex flex-even"> <main class="container flex flex-even">
<aside class="gdoc-nav"> <aside class="gdoc-nav">

View File

@ -1,13 +1,15 @@
<header class="gdoc-header"> <header class="gdoc-header">
<div class="container flex align-center justify-between"> <div class="container flex align-center justify-between">
{{ if .MenuEnabled }}
<label for="menu-control" class="gdoc-nav__control"> <label for="menu-control" class="gdoc-nav__control">
<svg class="icon menu"><use xlink:href="#menu"></use></svg> <svg class="icon menu"><use xlink:href="#menu"></use></svg>
<svg class="icon arrow-back"><use xlink:href="#arrow_back"></use></svg> <svg class="icon arrow-back"><use xlink:href="#arrow_back"></use></svg>
</label> </label>
<a class="gdoc-header__link" href="{{ .Site.BaseURL }}"> {{ end }}
<a class="gdoc-header__link" href="{{ .Root.Site.BaseURL }}">
<span class="gdoc-brand flex align-center"> <span class="gdoc-brand flex align-center">
<img class="gdoc-brand__img" src="{{ (default "brand.svg" .Site.Params.GeekdocLogo) | relURL }}" alt="{{ .Site.Title }}" width=38 height=38> <img class="gdoc-brand__img" src="{{ (default "brand.svg" .Root.Site.Params.GeekdocLogo) | relURL }}" alt="{{ .Root.Site.Title }}" width=38 height=38>
{{ .Site.Title }} {{ .Root.Site.Title }}
</span> </span>
</a> </a>
</div> </div>