mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
Revert sitemap fix - page.url does not include pathPrefix
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
{%- for page in collections.all %}
|
{%- for page in collections.all %}
|
||||||
{%- if not page.url.includes("404") %}
|
{%- if not page.url.includes("404") %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ site.url }}{{ page.url }}</loc>
|
<loc>{{ site.url }}{{ site.pathPrefix | default("") }}{{ page.url }}</loc>
|
||||||
<lastmod>{{ page.date | date }}</lastmod>
|
<lastmod>{{ page.date | date }}</lastmod>
|
||||||
<changefreq>{% if page.url == "/" %}weekly{% else %}monthly{% endif %}</changefreq>
|
<changefreq>{% if page.url == "/" %}weekly{% else %}monthly{% endif %}</changefreq>
|
||||||
<priority>{% if page.url == "/" %}1.0{% elif parent %}0.8{% else %}0.7{% endif %}</priority>
|
<priority>{% if page.url == "/" %}1.0{% elif parent %}0.8{% else %}0.7{% endif %}</priority>
|
||||||
|
|||||||
Reference in New Issue
Block a user