diff options
author | EuAndreh <eu@euandre.org> | 2020-02-06 03:58:52 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-02-06 03:58:52 -0300 |
commit | ccadc0bdf0436cefe76318567d358f27a46bf3e5 (patch) | |
tree | 58d52309b1ea2b6b7c3a08feed04deb5d64b83d2 /sitemap.xml | |
parent | Add code metadata annotation (diff) | |
parent | Setup publish environment variables (diff) | |
download | euandre.org-ccadc0bdf0436cefe76318567d358f27a46bf3e5.tar.gz euandre.org-ccadc0bdf0436cefe76318567d358f27a46bf3e5.tar.xz |
Merge branch 'jekyll'
Diffstat (limited to 'sitemap.xml')
-rw-r--r-- | sitemap.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..1c17a14 --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,29 @@ +--- +--- +<?xml version="1.0" encoding="UTF-8"?> +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"> + {% for post in site.posts %} + <url> + <loc>{{ site.url }}{{ post.url }}</loc> + {% assign versions=site.posts | where:"ref", post.ref %} + {% for version in versions %} + <xhtml:link rel="alternate" hreflang="{{ version.lang }}" href="{{ site.url }}{{ version.url }}" /> + {% endfor %} + <lastmod>{{ post.date | date_to_xmlschema }}</lastmod> + <changefreq>weekly</changefreq> + </url> + {% endfor %} + + {% for page in site.pages %} + <url> + <loc>{{ site.base }}{{ page.url }}</loc> + {% if page.ref != nil %} + {% assign versions=site.pages | where:"ref", page.ref %} + {% for version in versions %} + <xhtml:link rel="alternate" hreflang="{{ version.lang }}" href="{{ site.url }}{{ version.url }}" /> + {% endfor %} + {% endif %} + <changefreq>weekly</changefreq> + </url> + {% endfor %} +</urlset> |