Improve description tag generation

This commit is contained in:
rubenwardy
2023-04-30 00:53:55 +01:00
parent c2ab4ac308
commit 9fa42df385
8 changed files with 50 additions and 34 deletions

View File

@@ -17,11 +17,11 @@
{%- endif -%}
{% endblock %}
{% block description -%}
{{ thread.get_description() }}
{%- endblock %}
{% block headextra %}
<meta name="og:title" content="{{ self.title() }}"/>
<meta name="og:description" content="{{ thread.get_description() }}"/>
<meta name="description" content="{{ thread.get_description() }}"/>
<meta name="og:url" content="{{ thread.getViewURL(absolute=True) }}"/>
<meta name="og:image" content="{{ thread.author.getProfilePicURL() }}"/>
{% endblock %}