Trim description in meta section

This commit is contained in:
Simon Bruder 2021-12-11 17:34:56 +01:00
parent ff68b79ca8
commit 1294d2f305
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -23,7 +23,7 @@
<link rel="preload" href="{{ get_url(path="vendor/podlove-subscribe-button/fonts/roboto_medium/Roboto-Medium-webfont.ttf") | safe }}" as="font" crossorigin="anonymous">
{%- endblock prefetch %}
{%- block metadata %}
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ config.description }}{% endif %}">
<meta name="description" content="{% if page.description %}{{ page.description | trim }}{% else %}{{ config.description | trim }}{% endif %}">
{%- endblock metadata %}
</head>
<body>