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" %}
{% block title %}: Filed under "{{ tag.name }}"{% endblock %}
{% block title %}{% if tag %}: Filed under "{{ tag.name }}"{% else %}: All documents{% endif %}{% endblock %}
{% block content %}
{% if tag %}
@ -24,8 +24,10 @@
{% endblock %}
{% block meta-og %}
<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:description" content="{{ tag.description }}"/>
<meta property="og:type" content="website"/>
{% endblock %}
{% if tag %}
<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:description" content="{{ tag.description }}"/>
<meta property="og:type" content="website"/>
{% endif %}
{% endblock %}