Add meta tag to donate page

This commit is contained in:
rubenwardy 2023-04-30 00:33:20 +01:00
parent 4c66b25e7c
commit c2ab4ac308
2 changed files with 14 additions and 9 deletions

@ -4,6 +4,17 @@
{{ _("Support packages") }}
{%- endblock %}
{% block description -%}
{{ _("Some content creators are accepting donations for their work.") }}
{{ _("Donations are a great way to support your favorite modders, artists, and game developers.") }}
{% endblock %}
{% block headextra %}
<meta name="og:title" content="{{ self.title() }}">
<meta name="og:description" content="{{ self.description() | replace('\n', ' ') }}">
<meta name="description" content="{{ self.description() | replace('\n', ' ') }}">
{% endblock %}
{% macro authorlink(author) %}
<a href="{{ url_for('users.profile', username=author.username) }}">
{{ author.display_name }}
@ -51,8 +62,7 @@
{% block content %}
<h1>{{ self.title() }}</h1>
<p class="lead">
{{ _("Some content creators are accepting donations for their work.") }}
{{ _("Donations are a great way to support your favorite modders, artists, and game developers.") }}
{{ self.description() }}
</p>
<h2>{{ _("Based on your reviews") }}</h2>

@ -1,14 +1,9 @@
{% extends "base.html" %}
{% block title %}
{% block title -%}
{{ _("Report") }}
{% endblock %}
{%- endblock %}
{% block headextra %}
{% if noindex %}
<meta name="robots" content="noindex">
{% endif %}
{% endblock %}
{% block content %}