summaryrefslogtreecommitdiffstats
path: root/scripts/build_content.sh
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-24 15:05:32 +0100
committerVolpeon <git@volpeon.ink>2020-12-24 15:05:32 +0100
commit714d8f7ff8425e4177ff6bde4d214ef75be6b1ab (patch)
treebc343dd424b14bcadef61a80bfe7d423c139445c /scripts/build_content.sh
parentImproved typography (diff)
downloadvolpeon.ink-714d8f7ff8425e4177ff6bde4d214ef75be6b1ab.tar.gz
volpeon.ink-714d8f7ff8425e4177ff6bde4d214ef75be6b1ab.tar.bz2
volpeon.ink-714d8f7ff8425e4177ff6bde4d214ef75be6b1ab.zip
Added header, improved SCSS structure, use metadata file instead of param, improved folder structure
Diffstat (limited to 'scripts/build_content.sh')
-rwxr-xr-xscripts/build_content.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/build_content.sh b/scripts/build_content.sh
index 0698ee0..ca75120 100755
--- a/scripts/build_content.sh
+++ b/scripts/build_content.sh
@@ -1,7 +1,5 @@
1#!/bin/bash 1#!/bin/bash
2 2
3SITE_TITLE="Volpeon's Den"
4
5target () { 3target () {
6 if [ "${1#*.}" = "md" ]; then 4 if [ "${1#*.}" = "md" ]; then
7 echo "output/$(echo "${1%.md}.html" | cut -sd / -f 2-)" 5 echo "output/$(echo "${1%.md}.html" | cut -sd / -f 2-)"
@@ -22,7 +20,7 @@ handle () {
22 -t html5 \ 20 -t html5 \
23 --template templates/base.html \ 21 --template templates/base.html \
24 -o "$TARGET" \ 22 -o "$TARGET" \
25 --metadata sitetitle="$SITE_TITLE" 23 --metadata-file metadata/metadata.json
26 else 24 else
27 echo "[COPY ] $1 -> $TARGET" 25 echo "[COPY ] $1 -> $TARGET"
28 26