Renamed taxonomy album to category
Some checks failed
Build and Deploy / build_and_deploy (push) Failing after 4s
Some checks failed
Build and Deploy / build_and_deploy (push) Failing after 4s
This commit is contained in:
parent
cefae0c90c
commit
b54ecf23a8
@ -5,7 +5,7 @@ build_search_index = false
|
||||
generate_feeds = false
|
||||
|
||||
taxonomies = [
|
||||
{ name = "album" },
|
||||
{ name = "category" },
|
||||
{ name = "artist" },
|
||||
]
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
+++
|
||||
title = "1. signální"
|
||||
[taxonomies]
|
||||
album = ["20 let v síti"]
|
||||
category = ["taborak"]
|
||||
artist = ["Chinaski"]
|
||||
+++
|
||||
|
4
manage
4
manage
@ -28,11 +28,11 @@ create_new_song() {
|
||||
fi
|
||||
read -p "Song title: " title
|
||||
read -p "Artist: " artist
|
||||
read -p "Album: " album
|
||||
read -p "Category: " category
|
||||
|
||||
mkdir -p "$SONGS_PATH/$name"
|
||||
echo -e "{title: $title}\n{artist: $artist}" > "$SONGS_PATH/$name/$name.cho"
|
||||
echo -e "+++\ntitle = \"$title\"\n[taxonomies]\nalbum = [\"$album\"]\nartist = [\"$artist\"]\n+++" > "$SONGS_PATH/$name/index.md"
|
||||
echo -e "+++\ntitle = \"$title\"\n[taxonomies]\ncategory = [\"$category\"]\nartist = [\"$artist\"]\n+++" > "$SONGS_PATH/$name/index.md"
|
||||
echo "Song $name created."
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user