summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornikita <nikita@n0.is>2020-05-01 19:00:24 +0200
committernikita <nikita@n0.is>2020-05-01 19:00:24 +0200
commit5645dd991b7038f9b02f2e7fcc6d10bc7dee6259 (patch)
tree1caeb1792752f7c3c2f0ec9bea15299470054401
parent8e623df246187bb5e0c9b769eb4b706ec437b628 (diff)
Add opengraph to header, most of it is TODO
-rw-r--r--common/header.j2.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/common/header.j2.inc b/common/header.j2.inc
index 2f809854..9d797fed 100644
--- a/common/header.j2.inc
+++ b/common/header.j2.inc
@@ -56,3 +56,21 @@
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="GNUnet.org rss" href="{{ url_localized('news/rss.xml') }}" />
+
+ <!-- opengraph -->
+ <!--
+ We do not actively use Twitter or endorse it, but people might
+ use our posts there or other websites might conform to the
+ twitter namespace of the opengraph. More opengraph must be
+ implemented in the sitecode.
+ -->
+ <meta name="twitter:card" content="article" />
+ <meta name="twitter:site" content="@gnunet" />
+ <meta name="twitter:creator" content="@gnunet" />
+ {#
+ TODO: Implement the necessary functions.
+ <meta property="og:url" content="{{ url_localized(url) }}" />
+ <meta property="og:title" content="{{ title }}" />
+ <meta property="og:description" content="{{ summary }}" />
+ <meta property="og:image" content="" />
+ #}