Skip to content

Commit

Permalink
update doc deps + sitemap languages
Browse files Browse the repository at this point in the history
  • Loading branch information
janickr committed Apr 5, 2024
1 parent 13198bd commit 42e619c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "base.html" %}

{% block extrahead %}
{% block site_meta %}
{{ super() }}
<link rel="alternate" href="{{ page.canonical_url|replace('/nl/', '/en/') }}" hreflang="en" />
<link rel="alternate" href="{{ page.canonical_url|replace('/en/', '/nl/') }}" hreflang="nl" />
Expand Down
4 changes: 3 additions & 1 deletion docs/overrides/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
{%- for file in pages -%}
{% if not file.page.is_link and (file.page.canonical_url or file.page.abs_url)%}
<url>
<loc>{% if file.page.canonical_url %}{{ file.page.canonical_url|e }}{% else %}{{ file.page.abs_url|e }}{% endif %}</loc>
<xhtml:link rel="alternate" hreflang="en" href="{% if file.page.canonical_url %}{{ file.page.canonical_url|replace('/nl/', '/en/') }}{% else %}{{ file.page.abs_url|replace('/nl/', '/en/') }}{% endif %}"/>
<xhtml:link rel="alternate" hreflang="nl" href="{% if file.page.canonical_url %}{{ file.page.canonical_url|replace('/en/', '/nl/') }}{% else %}{{ file.page.abs_url|replace('/en/', '/nl/') }}{% endif %}"/>
{% if file.page.update_date %}<lastmod>{{file.page.update_date}}</lastmod>{% endif %}
<changefreq>daily</changefreq>
</url>
Expand Down
Binary file modified docs/requirements.txt
Binary file not shown.

0 comments on commit 42e619c

Please sign in to comment.