Renamed taxonomy album to category
Some checks failed
Build and Deploy / build_and_deploy (push) Failing after 4s

This commit is contained in:
Filip Rojek 2025-02-25 01:01:48 +01:00
parent cefae0c90c
commit b54ecf23a8
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ build_search_index = false
generate_feeds = false
taxonomies = [
{ name = "album" },
{ name = "category" },
{ name = "artist" },
]

View File

@ -1,6 +1,6 @@
+++
title = "1. signální"
[taxonomies]
album = ["20 let v síti"]
category = ["taborak"]
artist = ["Chinaski"]
+++

4
manage
View File

@ -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."
}