Fix empty descriptions being added

This commit is contained in:
rubenwardy 2023-05-13 17:45:22 +01:00
parent 0c1d1354cb
commit 286a598c77

@ -5,19 +5,23 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ self.title() | normalize_whitespace }} - {{ config.USER_APP_NAME }}</title>
<link rel="stylesheet" type="text/css" href="/static/libs/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/static/custom.css?v=38">
<link rel="search" type="application/opensearchdescription+xml" href="/static/opensearch.xml" title="ContentDB" />
<link rel="shortcut icon" href="/favicon-16.png" sizes="16x16">
<link rel="icon" href="/favicon-128.png" sizes="128x128">
<link rel="icon" href="/favicon-32.png" sizes="32x32">
{% if noindex -%}
<meta name="robots" content="noindex">
{%- endif %}
{% if self.description -%}
<meta name="og:site_name" content="ContentDB">
{% if self.description and self.description != "" -%}
<meta name="og:title" content="{{ self.title() | normalize_whitespace }}">
<meta name="description" content="{{ self.description() | normalize_whitespace }}">
<meta name="og:description" content="{{ self.description() | normalize_whitespace }}">
<link rel="stylesheet" type="text/css" href="/static/libs/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/static/custom.css?v=38">
<link rel="search" type="application/opensearchdescription+xml" href="/static/opensearch.xml" title="ContentDB" />
{% if noindex -%}
<meta name="robots" content="noindex">
{%- endif %}
{%- endif %}
{% block headextra %}{% endblock %}
</head>