added og:description to HTML description metatag; added option to include custom HTML metadata

This commit is contained in:
eclipse 2025-04-01 11:18:40 +02:00
parent dcf504b97d
commit d9d8068b4c

View File

@ -5,15 +5,18 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
{% include "includes/favicon.html" %} {% include "includes/favicon.html" %}
<meta name="description" content="{% block metadesc %}{{ DEFAULT_METADESC|e }}{% endblock %}" />
<meta name="description" property="og:description" content="{% block metadesc %}{{ DEFAULT_METADESC | e }}{% endblock %}" />
<meta name="author" content="{{ AUTHOR }}" /> <meta name="author" content="{{ AUTHOR }}" />
<meta name="generator" content="Pelican" /> <meta name="generator" content="Pelican" />
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
{% for css in STYLESHEET_FILES %} {% for css in STYLESHEET_FILES %}
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ css }}" /> <link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ css }}" />
{% endfor %} {% endfor %}
<title>{% block title %}{{ SITENAME }}{% endblock %}</title> <title>{% block title %}{{ SITENAME | e }}{% endblock %}</title>
{% block html_metadata %}{% endblock html_metadata %}
</head> </head>
<body> <body>