qsgen2: Add option to update sitemaps only again

This commit is contained in:
Stig-Ørjan Smelror 2024-02-19 20:05:21 +01:00
parent 14258f5b20
commit cb2f169bb4

3
qsgen2
View File

@ -915,7 +915,7 @@ function _sitemap() {
fi
# Check if sitemap is set to true and if there are updated Blogs or Pages before updating the sitemap.xml file.
if [[ ${sitemap} == "true" ]] && ( [[ ${new_updated_blogs} == "true" ]] || [[ ${new_updated_pages} == "true" ]] ); then
if [[ ${sitemap} == "true" ]] && ( [[ ${new_updated_blogs} == "true" ]] || [[ ${new_updated_pages} == "true" ]] ) || [[ ${sitemap_force} == "true" ]]; then
setopt extendedglob
@ -1314,6 +1314,7 @@ case ${1} in
;;
sitemap)
_msg sub "Updating sitemaps"
export sitemap_force=true
_sitemap
exit
;;