Skip to content

Commit

Permalink
feat(sitemaps): gen sitemap and updated urls.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
windauer committed Apr 23, 2024
1 parent 11bf25b commit 3501ecc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/sitemap-generate.xq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
xquery version "3.1";

import module namespace site="http://ns.evolvedbinary.com/sitemap" at "/db/apps/hsg-shell/modules/sitemap-config.xqm";

let $full := doc('/db/apps/hsg-shell/urls.xml')
let $_ := util:log("info", "start generating sitemap")
let $generate := site:build-map($full/*)
let $_ := util:log("info", "finished generating sitemap")
return
"success"
2 changes: 2 additions & 0 deletions urls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
<step value="all">
<page-template href="pages/countries/all.xml"/>
</step>
<!--
<step value="issues">
<step key="issue">
<page-template href="pages/countries/issues/article.xml">
Expand All @@ -195,6 +196,7 @@
</step>
<page-template href="pages/countries/issues/index.xml"/>
</step>
-->
<step value="archives">
<step value="all">
<page-template href="pages/countries/archives/all.xml">
Expand Down

0 comments on commit 3501ecc

Please sign in to comment.