neddit

the frontend of the frontpage of the internet  https://neddit.ce9e.org
git clone https://git.ce9e.org/neddit.git

commit
1bca67214be6c9cac929241a3b515f3b3017e90d
parent
9d546903d7ba86ea261f6ab7bab65b53da62eca0
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-02-16 07:53
open graph metadata for posts

Diffstat

M templates/base.html 1 +
M templates/comments.html 8 ++++++++

2 files changed, 9 insertions, 0 deletions


diff --git a/templates/base.html b/templates/base.html

@@ -6,6 +6,7 @@
    6     6 	<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src *.redditmedia.com *.redd.it; media-src *.redd.it">
    7     7 	<title>{% block title %}neddit: the frontend of the frontpage of the internet{% endblock %}</title>
    8     8 	<link rel="stylesheet" href="/static/style.css">
   -1     9 	{% block meta %}{% endblock %}
    9    10 </head>
   10    11 <body>
   11    12 	<header id="header">

diff --git a/templates/comments.html b/templates/comments.html

@@ -2,6 +2,14 @@
    2     2 
    3     3 {% block title %}{{ post.data.title }}{% endblock %}
    4     4 
   -1     5 {% block meta %}
   -1     6 	<meta property="og:type" content="website">
   -1     7 	<meta property="og:url" content="{{ post.data.url }}">
   -1     8 	<meta property="og:site_name" content="reddit">
   -1     9 	<meta property="og:title" content="{{ post.data.title }}">
   -1    10 	<meta property="og:image" content="{{ post.data.thumbnail }}">
   -1    11 {% endblock %}
   -1    12 
    5    13 {% block content %}
    6    14 	<div class="post">
    7    15 		{% include '_post.html' %}