From 8d438efe2deb443c2f00b236e5ba9c842b295368 Mon Sep 17 00:00:00 2001 From: teldra Date: Fri, 8 Apr 2022 18:04:48 +0200 Subject: [PATCH] small fixes --- config.toml | 9 --------- content/archive/_index.en.md | 3 --- content/archive/_index.ku.md | 3 --- new.sh | 17 +++++++++++++++++ 4 files changed, 17 insertions(+), 15 deletions(-) delete mode 100644 content/archive/_index.en.md delete mode 100644 content/archive/_index.ku.md create mode 100755 new.sh diff --git a/config.toml b/config.toml index 04c38cb..288ee92 100644 --- a/config.toml +++ b/config.toml @@ -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" diff --git a/content/archive/_index.en.md b/content/archive/_index.en.md deleted file mode 100644 index ba47535..0000000 --- a/content/archive/_index.en.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -type: "archive" ---- \ No newline at end of file diff --git a/content/archive/_index.ku.md b/content/archive/_index.ku.md deleted file mode 100644 index ba47535..0000000 --- a/content/archive/_index.ku.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -type: "archive" ---- \ No newline at end of file diff --git a/new.sh b/new.sh new file mode 100755 index 0000000..82342a7 --- /dev/null +++ b/new.sh @@ -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"