Tidy base docs template

This commit is contained in:
Adam Liddell 2021-12-02 18:09:12 +00:00
parent fa14f8444c
commit 31830ed4b2
1 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@
{%- if meta %}
{%- for tag in ('description', 'author', 'keywords') %}
{%- if tag in meta %}
<meta name="{{ tag }}" content="{{ meta[tag].replace('\n', ' ')|e }}">
<meta name="{{ tag }}" content="{{ meta[tag].replace('\n', ' ')|e }}"/>
{%- endif %}
{%- endfor %}
{%- endif %}
@ -15,7 +15,7 @@
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1)|e }}"/>
{%- endif %}
{%- if icon_png %}
<link rel="apple-touch-icon" href="{{ pathto('_static/' + icon_png, 1)|e }}">
<link rel="apple-touch-icon" href="{{ pathto('_static/' + icon_png, 1)|e }}"/>
{%- endif %}
<!-- Canonical URL -->
@ -25,15 +25,15 @@
<!-- Open Graph -->
{%- if pageurl %}
<meta property="og:url" content="{{ pageurl|e }}" />
<meta property="og:url" content="{{ pageurl|e }}"/>
{%- endif %}
<meta property="og:title" content="{{ title|striptags|e }}{{ titlesuffix }}" />
<meta property="og:title" content="{{ title|striptags|e }}{{ titlesuffix }}"/>
{%- if absolute_icon_png %}
<meta property="og:image" content="{{ absolute_icon_png|e }}" />
<meta property="og:image" content="{{ absolute_icon_png|e }}"/>
{%- endif %}
<meta property="og:type" content="website">
{%- if meta and 'description' in meta %}
<meta property="og:description" content="{{ meta['description'].replace('\n', ' ') }}">
<meta property="og:description" content="{{ meta['description'].replace('\n', ' ') }}"/>
{%- endif %}
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "e3e6c3cfbf5646aa93d4b98ce5f97a4d"}'></script>