Fixed an issue with gen.sh where files with multiple periods were not counted as "pages"

This commit is contained in:
2024-02-22 14:42:10 -07:00
parent 97e73d6174
commit e0939f2d3e
3 changed files with 4 additions and 2 deletions

View File

@ -52,7 +52,7 @@ fi
echo $BINARY
# Infer pages from .html files in the pages directory
PAGES=$(ls ../pages/templates/*.html | xargs -n 1 basename | cut -d. -f1)
PAGES=$(ls ../pages/templates/*.html | xargs -n 1 basename | sed 's/\.[^.]*$//')
# Run the binary for each page
for PAGE in $PAGES; do