summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-11-10 22:23:54 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-11-10 22:23:54 +0100
commit5ac63f9679cb623621136c36021bfcca654331f3 (patch)
treed9e528d8764ca67308931d0fe9cffbb1aacf539c
parent09a36278fc6a187a996fbd05899d23f282dc1c90 (diff)
theme: support for opengraph in articlesHEADmaster
-rw-r--r--themes/elenq/templates/article.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/themes/elenq/templates/article.html b/themes/elenq/templates/article.html
index 868b8bb..e5be1be 100644
--- a/themes/elenq/templates/article.html
+++ b/themes/elenq/templates/article.html
@@ -1,13 +1,18 @@
{% extends "base.html" %}
{% block head %}
{{ super() }}
+
+ {% if article.title %}
+ <meta name="og:title" content="{{article.title | striptags }}" />
+ {% endif %}
{% if article.description %}
<meta name="description" content="{{article.description}}" />
+ <meta name="og:description" content="{{article.description}}" />
{% endif %}
-
{% for tag in article.tags %}
<meta name="tags" content="{{tag}}" />
{% endfor %}
+ <meta property="og:type" content="article" />
{% endblock %}