diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-12-26 19:07:29 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-12-26 19:07:29 +0100 |
commit | eb79cee7ef6bdc4a44aabfce10617a18be2b8d96 (patch) | |
tree | df4d5555c4bd23732ad06c6893c2610855ceb5f5 /templates/page.html | |
parent | 96762ba965d60bd09493ac19cb06cbd0798e44b0 (diff) | |
download | rabalderz-eb79cee7ef6bdc4a44aabfce10617a18be2b8d96.tar.gz rabalderz-eb79cee7ef6bdc4a44aabfce10617a18be2b8d96.tar.bz2 rabalderz-eb79cee7ef6bdc4a44aabfce10617a18be2b8d96.zip |
Add opengraph support.
Diffstat (limited to 'templates/page.html')
-rw-r--r-- | templates/page.html | 9 |
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" %} |