summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-03-22 20:52:20 +0100
committerVolpeon <git@volpeon.ink>2021-03-22 20:52:20 +0100
commitb292cd39bf5e5c2d96f2f64eb1a94d8fd63fae9e (patch)
tree95e6a5701c6686725f3fd4145881e3687f5228ee /scripts
parentWIP: Redesign (diff)
downloadvolpeon.ink-b292cd39bf5e5c2d96f2f64eb1a94d8fd63fae9e.tar.gz
volpeon.ink-b292cd39bf5e5c2d96f2f64eb1a94d8fd63fae9e.tar.bz2
volpeon.ink-b292cd39bf5e5c2d96f2f64eb1a94d8fd63fae9e.zip
WIP: Redesign
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_content.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build_content.sh b/scripts/build_content.sh
index 22f52df..8bcf7c2 100755
--- a/scripts/build_content.sh
+++ b/scripts/build_content.sh
@@ -54,7 +54,7 @@ get_subpages_basedir() {
54 local filename=$1 54 local filename=$1
55 filename=${filename%.md} 55 filename=${filename%.md}
56 if [ "${filename##*/}" = "index" ]; then 56 if [ "${filename##*/}" = "index" ]; then
57 filename=${filename%index} 57 filename=${filename%/index}
58 fi 58 fi
59 echo "$filename" 59 echo "$filename"
60} 60}
@@ -69,8 +69,8 @@ get_subpages_metadata() {
69 -type f \ 69 -type f \
70 -name "*.md" \ 70 -name "*.md" \
71 ! -name "_*.md" \ 71 ! -name "_*.md" \
72 ! -wholename "${base_dir_in}index.md" \ 72 ! -wholename "$base_dir_in/index.md" \
73 \( -wholename "$base_dir_in*/index.md" -o ! -wholename "$base_dir_in*/*.md" \) \ 73 \( -wholename "$base_dir_in/*/index.md" -o ! -wholename "$base_dir_in/*/*.md" \) \
74 -print0) 74 -print0)
75 fi 75 fi
76 76