diff --git a/assets/scss/sitemap.scss b/assets/scss/sitemap.scss new file mode 100644 index 0000000..037451a --- /dev/null +++ b/assets/scss/sitemap.scss @@ -0,0 +1,16 @@ +@import "_variables"; + +urlset { + background-color: $background_accent_2; + url { + color: $font_default; + &:after { + content: '\a'; + white-space: pre; + } + &:before { + content: '> '; + white-space: pre; + } + } +} diff --git a/content/sitemap.xml/contents.lr b/content/sitemap.xml/contents.lr new file mode 100644 index 0000000..ffd5fad --- /dev/null +++ b/content/sitemap.xml/contents.lr @@ -0,0 +1,4 @@ +_template: sitemap.xml +--- +_model: none +_discoverable: no diff --git a/templates/sitemap.xml b/templates/sitemap.xml new file mode 100644 index 0000000..8c832fe --- /dev/null +++ b/templates/sitemap.xml @@ -0,0 +1,9 @@ + + + {%- for page in [site.root] if page != this recursive %} + {%- if not page.hide_from_global_index %} + {{ page|url(external=true) }} + {{- loop(page.children) }} + {%- endif %} + {%- endfor %} +