fix opengraph in all document listing

This commit is contained in:
Tomáš Mládek 2020-03-19 00:12:42 +01:00
parent 5611978f57
commit a71f9deba6

View file

@ -1,6 +1,6 @@
{% extends "front_base.html" %} {% extends "front_base.html" %}
{% block title %}: Filed under "{{ tag.name }}"{% endblock %} {% block title %}{% if tag %}: Filed under "{{ tag.name }}"{% else %}: All documents{% endif %}{% endblock %}
{% block content %} {% block content %}
{% if tag %} {% if tag %}
@ -24,8 +24,10 @@
{% endblock %} {% endblock %}
{% block meta-og %} {% block meta-og %}
{% if tag %}
<meta property="og:title" content="The /-\ Pile: Documents under &quot;{{ tag.name }}&quot;"/> <meta property="og:title" content="The /-\ Pile: Documents under &quot;{{ tag.name }}&quot;"/>
<meta property="og:url" content="{% url "pile:tag" tag.id %}"/> <meta property="og:url" content="{% url "pile:tag" tag.id %}"/>
<meta property="og:description" content="{{ tag.description }}"/> <meta property="og:description" content="{{ tag.description }}"/>
<meta property="og:type" content="website"/> <meta property="og:type" content="website"/>
{% endif %}
{% endblock %} {% endblock %}