From c28a51bf13a5d009001727145a6118e1fda78234 Mon Sep 17 00:00:00 2001 From: Matthias Portzel Date: Thu, 19 May 2022 13:44:02 -0700 Subject: [PATCH] Add basic opengraph support --- thoughts/templates/thoughts/about.html | 9 ++++++++ thoughts/templates/thoughts/index.html | 31 ++++++++++++++++++++------ thoughts/templates/thoughts/page.html | 2 ++ 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/thoughts/templates/thoughts/about.html b/thoughts/templates/thoughts/about.html index 94dab04..1f7a3e6 100644 --- a/thoughts/templates/thoughts/about.html +++ b/thoughts/templates/thoughts/about.html @@ -9,6 +9,15 @@ {% endif %} {% endblock %} +{% block head %} + + + + + + +{% endblock %} + {% block main %}

Welcome!

diff --git a/thoughts/templates/thoughts/index.html b/thoughts/templates/thoughts/index.html index 48bc9c7..5eb2dcb 100644 --- a/thoughts/templates/thoughts/index.html +++ b/thoughts/templates/thoughts/index.html @@ -11,14 +11,31 @@ {% endblock %} {% block head %} - -{% if not first_page %} - -{% else %} - -{% endif %} + + {% if not first_page %} + + {% else %} + + {% endif %} - + + + + + + + + {% for thought in thoughts %} + {% if thought.uuid == highlighted %} + + + + {% if thought.get_media_type == "png" or thought.get_media_type == "jpeg" %} + + + {% endif %} + {% endif %} + {% endfor %} {% endblock %} {% block main %} diff --git a/thoughts/templates/thoughts/page.html b/thoughts/templates/thoughts/page.html index bc3abc7..ba1e3af 100644 --- a/thoughts/templates/thoughts/page.html +++ b/thoughts/templates/thoughts/page.html @@ -7,6 +7,8 @@ {% load static %} + + {% block head %}{% endblock %}