feat: add page parameter geekdocNav to disable navigation sidebar (#129)
This commit is contained in:
parent
7938bc7d97
commit
cd0cfe37ae
6 changed files with 61 additions and 14 deletions
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: Documentation
|
||||
description: Geekdoc is a simple Hugo theme for documentations. It is intentionally designed as a fast and lean theme and may not fit the requirements of complex projects. If a more feature-complete theme is required there are a lot of got alternatives out there.
|
||||
geekdocNav: false
|
||||
---
|
||||
|
||||
<!-- markdownlint-capture -->
|
||||
|
@ -16,11 +17,46 @@ description: Geekdoc is a simple Hugo theme for documentations. It is intentiona
|
|||
|
||||
Geekdoc is a simple Hugo theme for documentations. It is intentionally designed as a fast and lean theme and may not fit the requirements of complex projects. If a more feature-complete theme is required there are a lot of got alternatives out there.
|
||||
|
||||
{{< button relref="usage/getting-started/" >}}Explore Documentation{{< /button >}}
|
||||
|
||||
## Features
|
||||
|
||||
- Clean and simple design
|
||||
- Light and mobile-friendly
|
||||
- Easy customization
|
||||
- Zero initial configuration
|
||||
- Handy shortcodes
|
||||
- Dark mode
|
||||
{{< columns >}}
|
||||
|
||||
### Clean and simple design
|
||||
|
||||
Stay focused on exploring the content and don't get overwhelmed by a complex design.
|
||||
|
||||
<--->
|
||||
|
||||
### Light and mobile-friendly
|
||||
|
||||
The theme is powered by less than 1 MB and looks impressive on mobile devices as well as on a regular Desktop.
|
||||
|
||||
<--->
|
||||
|
||||
### Easy customization
|
||||
|
||||
The look and feel can be easily customized by CSS custom properties (variables), features can be adjusted by Hugo parameters.
|
||||
|
||||
{{< /columns >}}
|
||||
|
||||
{{< columns >}}
|
||||
|
||||
### Zero initial configuration
|
||||
|
||||
Getting started in minutes. The theme is shipped with a default configuration and works out of the box.
|
||||
|
||||
<--->
|
||||
|
||||
### Handy shortcodes
|
||||
|
||||
We included some (hopefully) useful custom shortcodes so you don't have to and can focus on writing amazing docs.
|
||||
|
||||
<--->
|
||||
|
||||
### Dark mode
|
||||
|
||||
Powerful dark mode that detects your system preferences or can be controlled by a toggle switch.
|
||||
|
||||
{{< /columns >}}
|
||||
|
|
|
@ -7,9 +7,5 @@ Buttons are styled links that can lead to local page or external link.
|
|||
|
||||
## Example
|
||||
|
||||
<!-- spellchecker-disable -->
|
||||
|
||||
{{< button relref="/" >}}Get Home{{< /button >}}
|
||||
{{< button href="https://github.com/thegeeklab/hugo-geekdoc" >}}Contribute{{< /button >}}
|
||||
|
||||
<!-- spellchecker-enable -->
|
||||
|
|
|
@ -209,6 +209,10 @@ geekdocToC = 3
|
|||
# Set a description for the current page. This will be shown in toc-trees objects.
|
||||
geekdocDescription =
|
||||
|
||||
# Set false to hide the whole left navigation sidebar. Beware that it will make
|
||||
# navigation pretty hard without adding some kind of on-page navigation.
|
||||
geekdocNav = true
|
||||
|
||||
# Show a breadcrumb navigation bar at the top of each docs page.
|
||||
geekdocBreadcrumb = false
|
||||
|
||||
|
@ -262,6 +266,10 @@ geekdocToC: 3
|
|||
# Set a description for the current page. This will be shown in toc-trees objects.
|
||||
geekdocDescription:
|
||||
|
||||
# Set false to hide the whole left navigation sidebar. Beware that it will make
|
||||
# navigation pretty hard without adding some kind of on-page navigation.
|
||||
geekdocNav: true
|
||||
|
||||
# Show a breadcrumb navigation bar at the top of each docs page.
|
||||
geekdocBreadcrumb: false
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue