Commit 2c945035 authored by Martijn Braam's avatar Martijn Braam

Generate canonical urls for dark pages

parent bebec13b
......@@ -23,6 +23,9 @@
{% endif %}
<link rel="stylesheet" href="/static/css/codehilite.css">
<link rel="alternate" type="application/atom+xml" title="postmarketOS Blog" href="{{ url_for('atom') }}">
{% if request.path.startswith('/dark') %}
<link rel="canonical" href="https://postmarketos.org{{ request.path[5:] }}">
{% endif %}
{% block extra_link %}{% endblock %}
</head>
<body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment