summaryrefslogtreecommitdiffstats
path: root/templates/page.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html
index 1ad56a9..809c30c 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,4 +1,13 @@
{% extends "base.html" %}
+
+{% block opengraph %}
+ <meta name="description" content="{{ page.summary | default(value=page.content) | striptags | trim | truncate(length=200) }}">
+ <meta property="og:title" content="{{ page.title }}">
+ <meta property="og:type" content="article">
+ <meta property="og:url" content="{{ page.permalink | safe }}">
+ <meta property="og:description" content="{{ page.summary | default(value=page.content) | striptags | trim | truncate(length=200) }}">
+{% endblock opengraph %}
+
{% block language %}
{% set translations = page.translations %}
{% include "translation-links.html" %}