diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build_content.sh | 6 |
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 | ||