_sitemap: Try using Zsh's glob to find the files.

This commit is contained in:
Stig-Ørjan Smelror 2024-02-18 10:58:15 +01:00
parent 40518ec0c5
commit 152d811901

2
qsgen2
View File

@ -922,7 +922,7 @@ function _sitemap() {
# Find all HTML files and store them in an array
# local -a html_files=("${(@f)$(find "${www_root}" -type f -name "*.html")}")
local -a html_files=("${www_root}/**/[a-z]*.html(.)")
local -a html_files=(${www_root}/**/[a-z]*.html(.))
# Working on provinding 2 sitemaps, 1 for pages and 1 for blogs.
# sitemap-pages.xml
# sitemap-blogs.xml