-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: GitHub Action <[email protected]>
- Loading branch information
1 parent
2aac163
commit 47773c2
Showing
39 changed files
with
205 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
|
||
+++ | ||
title = "Hook" | ||
description = "Clean and simple personal site/blog theme" | ||
template = "theme.html" | ||
date = 2022-01-10T21:31:30+01:00 | ||
|
||
[extra] | ||
created = 2022-01-10T21:31:30+01:00 | ||
updated = 2022-01-10T21:31:30+01:00 | ||
repository = "https://github.com/InputUsername/zola-hook.git" | ||
homepage = "https://github.com/InputUsername/zola-hook" | ||
minimum_version = "0.15.2" | ||
license = "MIT" | ||
demo = "https://inputusername.github.io/zola-hook/" | ||
|
||
[extra.author] | ||
name = "Koen Bolhuis" | ||
homepage = "https://koen.bolhu.is" | ||
+++ | ||
|
||
# Hook | ||
|
||
A clean and simple personal site/blog theme for [Zola](https://getzola.org). | ||
|
||
[Demo](https://inputusername.github.io/zola-hook/) | ||
|
||
## Setup | ||
|
||
Clone this repo into your `themes` folder: | ||
```sh | ||
cd themes | ||
git clone https://github.com/InputUsername/zola-hook.git hook | ||
``` | ||
|
||
Then, enable it in your `config.toml`: | ||
```toml | ||
theme = "hook" | ||
``` | ||
|
||
## Features | ||
|
||
The following templates are built-in: | ||
- `index.html` - the homepage; | ||
- `page.html` - pages and posts (extends `index.html`); | ||
- `section.html` - archive of pages in a section, mostly for a blog (extends `page.html`); | ||
- `404.html` - 404 page (extends `page.html`). | ||
|
||
Templates have the following Tera blocks: | ||
- `title` - to override the default `<title>` (`config.title`); | ||
- `extra_head` - to override styles and anything else in `<head>`; | ||
- `header` - to change the header (best to put this in a `<header>`); | ||
- `content` - to change the content (best to put this in a `<main>`). | ||
|
||
You can define links to include in the header on the homepage in `config.toml`: | ||
```toml | ||
[extra] | ||
|
||
links = [ | ||
{ title = "Link display text", href = "http://example.com" }, | ||
# ... | ||
] | ||
``` | ||
|
||
Pages in the root section can define `extra.in_header = true` to be included in the header links on the homepage. | ||
|
||
The content in the root `_index.md` is included in the homepage if present. | ||
|
||
Below that is a list of the 20 most recent posts. For this, the `blog/_index.md` section is expected to exist | ||
(will error if it doesn't exist). There is also a link to an archive of all blog posts by year. | ||
|
||
Hook supports light/dark mode based on the user's preference. There is also a manual toggle button | ||
(requires JavaScript). | ||
|
||
## Screenshots | ||
|
||
### Homepage | ||
|
||
![Homepage](screenshot.png) | ||
|
||
### Blog post | ||
![Blog post](screenshot2.png) | ||
|
||
### Blog archive | ||
![Blog archive](screenshot3.png) | ||
|
||
### Dark mode | ||
![Dark mode](screenshot4.png) | ||
|
||
## License | ||
|
||
MIT license, see [`LICENSE`](https://github.com/InputUsername/zola-hook/blob/main/LICENSE). | ||
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.