refactor: move into a website directory
This commit is contained in:
parent
86529d7148
commit
3c5c0e808a
747 changed files with 133 additions and 2 deletions
37
website/source/sitemap.xml.twig
Normal file
37
website/source/sitemap.xml.twig
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
title: Sitemap
|
||||
permalink: sitemap.xml
|
||||
use:
|
||||
- pages
|
||||
- posts
|
||||
- talks
|
||||
---
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>{{ site.url|trim('/', 'right') }}</loc>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
|
||||
{% for page in data.pages if not page.exclude_from_sitemap %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url|trim('/', 'right') }}</loc>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
|
||||
{% for post in data.posts %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ post.url|trim('/', 'right') }}</loc>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
|
||||
{% for talk in data.talks if not talk.hide_page %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ talk.url|trim('/', 'right') }}</loc>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
|
||||
</urlset>
|
||||
Loading…
Add table
Add a link
Reference in a new issue