Add meta to package view pages

This commit is contained in:
Lars Mueller 2020-04-23 19:25:38 +02:00 committed by rubenwardy
parent 05bf8e3b3d
commit e94bd9b845
1 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,16 @@
{{ package.title }}
{% endblock %}
{% block headextra %}
<meta name="og:title" content="{{ package.title }}"/>
<meta name="og:description" content="{{ package.short_desc }}"/>
<meta name="description" content="{{ package.short_desc }}"/>
<meta name="og:url" content="{{ package.getDetailsURL() }}"/>
{% if package.getMainScreenshotURL() %}
<meta name="og:image" content="{{ package.getMainScreenshotURL() }}"/>
{% endif %}
{% endblock %}
{% block container %}
{% if not package.license.is_foss and not package.media_license.is_foss and package.type != package.type.TXP %}
{% set package_warning="Non-free code and media" %}