Improve description tag generation
This commit is contained in:
@@ -7,14 +7,14 @@
|
||||
{{ package.title }}
|
||||
{% endblock %}
|
||||
|
||||
{% block description -%}
|
||||
{{ package.short_desc }}
|
||||
{% 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.getURL("packages.view", absolute=True) }}"/>
|
||||
{% if package.getThumbnailURL(3, True) %}
|
||||
<meta name="og:image" content="{{ package.getThumbnailURL(3, True) }}"/>
|
||||
{% endif %}
|
||||
{% if package.getThumbnailURL(3, True) -%}
|
||||
<meta name="og:image" content="{{ package.getThumbnailURL(3, True) }}"/>
|
||||
{%- endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block scriptextra %}
|
||||
|
||||
Reference in New Issue
Block a user