Add meta to package view pages
This commit is contained in:
parent
05bf8e3b3d
commit
e94bd9b845
@ -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" %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user