Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tcarrio/after-midnight
A Zola theme forked from after-dark for my personal blog
https://github.com/tcarrio/after-midnight
blog theme zola zola-theme
Last synced: about 4 hours ago
JSON representation
A Zola theme forked from after-dark for my personal blog
- Host: GitHub
- URL: https://github.com/tcarrio/after-midnight
- Owner: tcarrio
- License: mit
- Created: 2023-08-06T22:00:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T04:41:47.000Z (8 months ago)
- Last Synced: 2024-04-03T02:30:04.695Z (8 months ago)
- Topics: blog, theme, zola, zola-theme
- Language: CSS
- Homepage: https://blog.carrio.dev
- Size: 6.87 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# after-midnight
![After Midnight screenshot](./screenshot.png)
## Contents
- [Installation](#installation)
- [Options](#options)
- [Top menu](#top-menu)
- [Title](#title)
- [Author](#author)## Installation
First download this theme to your `themes` directory:
```bash
cd themes
git clone https://github.com/tcarrio/after-midnight.git
```
and then enable it in your `config.toml`:```toml
theme = "after-midnight"
```This theme requires your index section (`content/_index.md`) to be paginated to work:
```toml
paginate_by = 5
```The posts should therefore be in directly under the `content` folder.
The theme requires tags and categories taxonomies to be enabled in your `config.toml`:
```toml
taxonomies = [
# You can enable/disable RSS
{name = "categories", feed = true},
{name = "tags", feed = true},
]
```If you want to paginate taxonomies pages, you will need to overwrite the templates
as it only works for non-paginated taxonomies by default.## Options
### Top-menu
Set a field in `extra` with a key of `after_dark_menu`:
```toml
after_dark_menu = [
{url = "$BASE_URL", name = "Home"},
{url = "$BASE_URL/categories", name = "Categories"},
{url = "$BASE_URL/tags", name = "Tags"},
{url = "https://google.com", name = "Google"},
]
```If you put `$BASE_URL` in a url, it will automatically be replaced by the actual
site URL.### Title
The site title is shown on the homepage. As it might be different from the ``
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 [After Dark template](https://github.com/getzola/after-dark) which was based on the [Hugo template](https://git.habd.as/comfusion/after-dark)