summaryrefslogtreecommitdiff
path: root/themes/elenq/templates
diff options
context:
space:
mode:
Diffstat (limited to 'themes/elenq/templates')
-rw-r--r--themes/elenq/templates/article.html7
-rw-r--r--themes/elenq/templates/base.html4
2 files changed, 10 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 %}
diff --git a/themes/elenq/templates/base.html b/themes/elenq/templates/base.html
index e5bba51..a319067 100644
--- a/themes/elenq/templates/base.html
+++ b/themes/elenq/templates/base.html
@@ -5,6 +5,10 @@
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
+ {% if MASTODON_HANDLE %}
+ <meta name="fediverse:creator" content="{{ MASTODON_HANDLE }}" />
+ {% endif %}
+
{% if FEED_ALL_ATOM %}
<link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
{% endif %}