Fix open graph image

This commit is contained in:
Gabriel Augendre 2020-11-28 20:14:26 +01:00
parent bd76050940
commit 3b09af8972
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4
2 changed files with 2 additions and 1 deletions

View file

@ -13,7 +13,7 @@
<meta property="og:title" content="{{ article.title }}" />
{% endif %}
{% if open_graph_image %}
<meta name="og:image" content="{{ open_graph_image.processed_file.url }}">
<meta property="og:image" content="{{ open_graph_image.processed_file.url }}">
{% endif %}
<title>{% block title %}Home | {% endblock %}Gab's Notes</title>
<link rel="stylesheet" id="code-light" href="{% static 'code-light.css' %}" type="text/css">

View file

@ -101,6 +101,7 @@ TEMPLATES = [
"articles.context_processors.date_format",
"articles.context_processors.git_version",
"articles.context_processors.plausible",
"articles.context_processors.open_graph_image",
],
},
},