Compare commits
5 commits
4137ca2531
...
65088e16b2
Author | SHA1 | Date | |
---|---|---|---|
Jessica Canady | 65088e16b2 | ||
Jessica Canady | a769ac5d5b | ||
Jessica Canady | 794f718f91 | ||
Jessica Canady | 5f2a3d6e41 | ||
Jessica Canady | 809082bf7a |
23
bin/newpost
Executable file
23
bin/newpost
Executable 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
|
|
@ -17,6 +17,9 @@ build_search_index = true
|
||||||
generate_feed = true
|
generate_feed = true
|
||||||
feed_limit = 20
|
feed_limit = 20
|
||||||
|
|
||||||
|
taxonomies = [
|
||||||
|
{ name = "tags" },
|
||||||
|
]
|
||||||
|
|
||||||
[markdown]
|
[markdown]
|
||||||
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
|
# 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"}
|
{name = "rss", url = "$BASE_URL/rss.xml"}
|
||||||
]
|
]
|
||||||
|
|
||||||
taxonomies = [
|
|
||||||
{name = "tags"},
|
|
||||||
]
|
|
||||||
|
|
||||||
# Whether to show links to earlier and later links on posts
|
# Whether to show links to earlier and later links on posts
|
||||||
enable_post_view_navigation = true
|
enable_post_view_navigation = true
|
||||||
|
|
||||||
# The text shown at the bottom of a post,
|
# The text shown at the bottom of a post,
|
||||||
# before earlier/later post links.
|
# before earlier/later post links.
|
||||||
post_view_navigation_prompt = "EOF"
|
post_view_navigation_prompt = "EOF reached"
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
The following tags are blessed.
|
The following tags are blessed.
|
||||||
|
|
||||||
|
- howto
|
||||||
- hardware
|
- hardware
|
||||||
- software
|
- software
|
||||||
- webdev
|
- webdev
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue