Skip to content

Commit

Permalink
Update sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKowalczyk committed Aug 6, 2020
1 parent a50103f commit 07a04cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@ layout: "null"
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
{% assign url = site.baseurl %}
{% for page in site.pages %}
{% if page.layout != "null" %}
{% if page.layout != "404" %}
{% comment %}
<!-- Default style file ignore -->
{% endcomment %}
{% if page.url != "/assets/main.css" %}
<url>
<loc>{{ site.url }}{{ page.url | remove: 'index.html' }}</loc>
<loc>{{ site.url }}{{ page.url | prepend: url }}</loc>
<lastmod>{% if page.time %}{{ page.time | date: '%Y-%m-%d' }}{% else %}{{ site.time | date: '%Y-%m-%d' }}{% endif %}</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</urlset>

0 comments on commit 07a04cc

Please sign in to comment.