chore: only add page summary if it exists

This commit is contained in:
thunderbottom 2024-08-12 19:48:20 +05:30
parent 95c40400c0
commit 6cbe0a532b

View File

@ -6,7 +6,9 @@
{% endblock title %}
{% block description %}
<meta name="description" content="{{ page.summary | striptags }}">
{% if page.summary %}
<meta name="description" content="{{ page.summary | striptags }}">
{% endif %}
{% if page.extra.tags %}
<meta name="keywords" content="{{ config.extra.keywords ~ ', ' ~ page.extra.tags }}">