Skip to content

Instantly share code, notes, and snippets.

@wout

wout/sitemap.xml

Last active Oct 1, 2020
Embed
What would you like to do?
TiLiShop Bridgetown Sitemap Example
---
layout: false
permalink: "/sitemap.xml"
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://tilishop.com/</loc>
</url>
<url>
<loc>https://tilishop.com/preregister</loc>
</url>
{%- for link in site.data.menus.main %}
<url>
<loc>https://tilishop.com{{ link.href }}</loc>
</url>
{%- endfor %}
{%- for post in site.posts %}
<url>
<loc>https://tilishop.com{{ post.url }}</loc>
</url>
{%- endfor %}
{%- for link in site.data.menus.footer %}
{% unless link.href contains 'mailto:' %}
<url>
<loc>https://tilishop.com{{ link.href }}</loc>
</url>
{% endunless %}
{%- endfor %}
{%- for link in site.data.menus.legal %}
<url>
<loc>https://tilishop.com{{ link.href }}</loc>
</url>
{%- endfor %}
</urlset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.