Compare commits

...

5 commits

5 changed files with 29 additions and 6 deletions

23
bin/newpost Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/../"
if [ ! -e $1 ]; then
cat > "content/blog/$1.md" <<-EOF
+++
title = $1
draft = true
[taxonomies]
tags = []
+++
EOF
echo "Created ./content/blog/$1.md"
else
echo "ERROR: File already exists ./content/blog/$1.md"
fi

BIN
bin/zola Executable file

Binary file not shown.

View file

@ -17,6 +17,9 @@ build_search_index = true
generate_feed = true
feed_limit = 20
taxonomies = [
{ name = "tags" },
]
[markdown]
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
@ -44,13 +47,9 @@ menu_items = [
{name = "rss", url = "$BASE_URL/rss.xml"}
]
taxonomies = [
{name = "tags"},
]
# Whether to show links to earlier and later links on posts
enable_post_view_navigation = true
# The text shown at the bottom of a post,
# before earlier/later post links.
post_view_navigation_prompt = "EOF"
post_view_navigation_prompt = "EOF reached"

View file

@ -2,6 +2,7 @@
The following tags are blessed.
- howto
- hardware
- software
- webdev

File diff suppressed because one or more lines are too long