Implements several improvements to the qsgen3 site generator: - **Filename Sanitization**: Introduces robust sanitization for output HTML filenames, converting to lowercase, replacing special characters with hyphens, and ensuring clean names. - **Blog Post URL Structure**: Blog posts from content/posts/ are now generated with a blog/YYYY/MM/DD/ URL structure if a valid date is present in frontmatter. Defaults to blog/filename.html if no valid date. - **Improved Title Fallback**: Uses the original filename (before sanitization) as a fallback title if not specified in frontmatter. - **Enhanced Pandoc Error Handling**: Better logging for Pandoc execution and explicit check of its exit code, allowing the script to continue on single file errors. - **Sitemap Integration**: Adds successfully generated pages to sitemap URL list. - **Non-fatal Sitemap Generation**: Sitemap generation failures are now logged as warnings and do not halt the script. Also, unignores the /scripts/ directory in .gitignore to include migration scripts in the repository.
62 lines
721 B
Plaintext
62 lines
721 B
Plaintext
# Temporary files
|
|
*.tmp
|
|
*.bak
|
|
*.backup
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
*.new
|
|
*.en
|
|
.DS_Store
|
|
.idea/
|
|
.vscode/
|
|
|
|
# Language directory temporary files
|
|
include/qsgen2/lang/*.backup
|
|
include/qsgen2/lang/*.bak
|
|
include/qsgen2/lang/*.new
|
|
include/qsgen2/lang/*.txt
|
|
include/qsgen2/lang/*.en
|
|
|
|
# Generated site output
|
|
output/
|
|
|
|
# Scripts directory (temporary/conversion scripts)
|
|
/tools/
|
|
|
|
# Build output
|
|
/build/
|
|
/dist/
|
|
*.o
|
|
|
|
# Python cache
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
|
|
# Node modules
|
|
node_modules/
|
|
|
|
# Logs
|
|
logs
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# Local development files
|
|
.env
|
|
.env.local
|
|
.env.development.local
|
|
.env.test.local
|
|
.env.production.local
|
|
|
|
# Editor directories and files
|
|
.idea
|
|
.vscode
|
|
*.suo
|
|
*.ntvs*
|
|
*.njsproj
|
|
*.sln
|
|
*.sw?
|