From 19d1d04e5a8b6f5ad1daa42c58a22c8e810fd2d0 Mon Sep 17 00:00:00 2001 From: chee Date: Tue, 17 Nov 2020 14:33:57 +0000 Subject: [PATCH] add twitter card --- app/routes.py | 1 + app/templates/piece.html | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index 869313d..441403c 100644 --- a/app/routes.py +++ b/app/routes.py @@ -159,6 +159,7 @@ def piece(username, collection_slug, piece_slug): if piece is None: return render_404() return render_template("piece.html", + title=piece.name, copyright_holder=ch, collection=collection, piece=piece) diff --git a/app/templates/piece.html b/app/templates/piece.html index 283d80e..a8431a5 100644 --- a/app/templates/piece.html +++ b/app/templates/piece.html @@ -27,8 +27,13 @@ {% endif %} - - + + + + + + + {% endblock %} {% block content %} {% include '_piece.html' %}