Merge pull request #29 from JacobHin2/patch-2

Added author config option to docs.
This commit is contained in:
Vincent Prouillet 2021-12-19 21:04:03 +01:00 committed by GitHub
commit 8c4c185ac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@
- [Options](#options)
- [Top menu](#top-menu)
- [Title](#title)
- [Author](#author)
## Installation
First download this theme to your `themes` directory:
@ -65,5 +66,22 @@ The site title is shown on the homepage. As it might be different from the `<tit
element that the `title` field in the config represents, you can set the `after_dark_title`
instead.
### Author
You can set this on a per page basis or in the config file.
`config.toml`:
```toml
[extra]
author = "John Smith"
```
In a page (wrap this in +++):
```toml
title = "..."
date = 1970-01-01
[extra]
author = "John Smith"
```
## Original
This template is based on the Hugo template https://git.habd.as/comfusion/after-dark