feat: add page parameter geekdocAlign to control a pages text alignment (#130)

This commit is contained in:
Robert Kaussow 2021-05-19 00:00:57 +02:00 committed by GitHub
parent cd0cfe37ae
commit e629d15607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 3 deletions

View file

@ -1,7 +1,8 @@
---
title: Documentation
title: Welcome to the 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
geekdocAlign: center
---
<!-- markdownlint-capture -->

View file

@ -248,6 +248,9 @@ geekdocAnchor = true
# page from search data, feeds, etc.
# WARNING: Consider hosting a standalone, fully auth-protected static page for secret information instead!
geekdocProtected = false
# Set 'left' (default), 'center' or 'right' to configure the text align of a page.
geekdocAlign = "left"
```
{{< /tab >}}
@ -305,6 +308,9 @@ geekdocAnchor: true
# page from search data, feeds, etc.
# WARNING: Consider hosting a standalone, fully auth-protected static page for secret information instead!
geekdocProtected: false
# Set 'left' (default), 'center' or 'right' to configure the text align of a page.
geekdocAlign: "left"
```
{{< /tab >}}