small fixes

This commit is contained in:
teldra 2022-04-08 18:04:48 +02:00
parent ac5f7f7aea
commit 8d438efe2d
4 changed files with 17 additions and 15 deletions

View File

@ -67,15 +67,6 @@ featured = 'featured'
taxonomy = ["HTML", "RSS"]
term = ["HTML", "RSS"]
[markup]
[markup.tableOfContents]
endLevel = 4
ordered = false
startLevel = 2
[languages]
[languages.de]
languageName = "Deutsch"

View File

@ -1,3 +0,0 @@
---
type: "archive"
---

View File

@ -1,3 +0,0 @@
---
type: "archive"
---

17
new.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
if [ ${#@} -eq 0 ]; then
echo "Titel des Artikels"
read -p ": " title
else
title="$@"
fi
date_long=$(date +%Y-%m-%dT%H:%M:%S:00+0200)
date=$(date +%Y-%m-%d)
title_=${title// /-}
mkdir -p "content/news/${date}-${title_}"
echo "---" > "content/news/${date}-${title_}/index.de.md"
echo "title: \"${title}\"" >> "content/news/${date}-${title_}/index.de.md"
echo "date: \"${date_long}\"" >> "content/news/${date}-${title_}/index.de.md"
echo "---" >> "content/news/${date}-${title_}/index.de.md"