qsgen2: Add option to update sitemaps only again
This commit is contained in:
parent
14258f5b20
commit
cb2f169bb4
3
qsgen2
3
qsgen2
@ -915,7 +915,7 @@ function _sitemap() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if sitemap is set to true and if there are updated Blogs or Pages before updating the sitemap.xml file.
|
# 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
|
setopt extendedglob
|
||||||
|
|
||||||
@ -1314,6 +1314,7 @@ case ${1} in
|
|||||||
;;
|
;;
|
||||||
sitemap)
|
sitemap)
|
||||||
_msg sub "Updating sitemaps"
|
_msg sub "Updating sitemaps"
|
||||||
|
export sitemap_force=true
|
||||||
_sitemap
|
_sitemap
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user