summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-29 21:24:31 +0100
committerVolpeon <git@volpeon.ink>2020-12-29 21:24:31 +0100
commit435e558193d7d5f2e04b1bfe2295a5070aa14cc9 (patch)
tree98d06440bbe720316d911717ddd78f08d9c6406a /scripts
parentAdded definition list styling (diff)
downloadvolpeon.ink-435e558193d7d5f2e04b1bfe2295a5070aa14cc9.tar.gz
volpeon.ink-435e558193d7d5f2e04b1bfe2295a5070aa14cc9.tar.bz2
volpeon.ink-435e558193d7d5f2e04b1bfe2295a5070aa14cc9.zip
Fixed regression: Category showed up in child pages as well
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_content.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/build_content.sh b/scripts/build_content.sh
index e2b3bb3..12de8c8 100755
--- a/scripts/build_content.sh
+++ b/scripts/build_content.sh
@@ -94,12 +94,15 @@ get_subpages_meta() {
94 94
95 pages=$(echo "{}" | jq ". + { \ 95 pages=$(echo "{}" | jq ". + { \
96 all: [], \ 96 all: [], \
97 by_year: {} \ 97 by_year: {}, \
98 not_empty: false \
98 }") 99 }")
99 100
100 if [ ${#child_pages[@]} -ne 0 ]; then 101 if [ ${#child_pages[@]} -ne 0 ]; then
101 #echo -e "\033[0;90m[////////]\033[0m Child pages:" 102 #echo -e "\033[0;90m[////////]\033[0m Child pages:"
102 103
104 pages=$(echo "$pages" | jq ".not_empty = true")
105
103 for file in "${child_pages[@]}"; do 106 for file in "${child_pages[@]}"; do
104 #echo -e "\033[0;90m[////////]\033[0m - $file" 107 #echo -e "\033[0;90m[////////]\033[0m - $file"
105 108