From dff853e44373a2ad5b0386629f307d3e944873da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sat, 19 Dec 2020 16:53:24 +0100 Subject: [PATCH] further rdfa/og metadata fixes --- .../pile/templates/front_doc_detail.html | 26 ++++++++++--------- .../pile/templates/front_doc_listing.html | 2 +- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/sdbs_pile/pile/templates/front_doc_detail.html b/sdbs_pile/pile/templates/front_doc_detail.html index 80c71ba..1a1b8c0 100644 --- a/sdbs_pile/pile/templates/front_doc_detail.html +++ b/sdbs_pile/pile/templates/front_doc_detail.html @@ -3,22 +3,22 @@ {% block title %}: {{ document.title }}{% endblock %} {% block content %} -
-

{{ document.title }}

+
+

{{ document.title }}

{% if document.author %} -

{{ document.author }}

+

{{ document.author }}

{% endif %} {% if document.published %} -

Published: {{ document.published }}

+

Published: {{ document.published }}

{% endif %}

Type: {{ document.get_media_type_display }}

{% if document.tags.count > 0 %}

- Tags: + Tag {% for tag in document.tags.all %}
  • @@ -31,10 +31,10 @@ {% if document.description %}
    - - {% if document.url %}Description{% else %}Content{% endif %}: - -

    {{ document.html_description | safe }}

    + + {% if document.url %}Description{% else %}Content{% endif %}: + +
    {{ document.html_description | safe }}
    {% endif %} @@ -42,7 +42,9 @@ {% if document.is_local_pdf %}
    {% if document.urls.count > 1 %} @@ -61,7 +63,7 @@ {% else %} {% if document.urls.count > 1 %} @@ -109,7 +111,7 @@ {% block meta-og %} - + {% endblock %} \ No newline at end of file diff --git a/sdbs_pile/pile/templates/front_doc_listing.html b/sdbs_pile/pile/templates/front_doc_listing.html index 9a65011..67692d8 100644 --- a/sdbs_pile/pile/templates/front_doc_listing.html +++ b/sdbs_pile/pile/templates/front_doc_listing.html @@ -41,7 +41,7 @@ {% block meta-og %} {% if tag %} - + {% endif %}