summaryrefslogtreecommitdiffstatshomepage
path: root/templates
diff options
context:
space:
mode:
authorWolfgang Müller2019-07-22 17:02:29 +0200
committerWolfgang Müller2019-07-22 17:08:11 +0200
commit9589e97b812cf368c583f38998eba001bbb72de0 (patch)
tree28ca8ec14636ddd0e7fc66f7cba9b0a2f41aadab /templates
parent2036984ac0c74f98a17019c67e4c3053a1a5849a (diff)
downloadsite-9589e97b812cf368c583f38998eba001bbb72de0.tar.gz
Add twitter card support
For some reason they don't support SVG, so use a webp image for now.
Diffstat (limited to 'templates')
-rw-r--r--templates/index.xml4
-rw-r--r--templates/post.xml4
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/index.xml b/templates/index.xml
index 620a09b..45e0168 100644
--- a/templates/index.xml
+++ b/templates/index.xml
@@ -7,6 +7,10 @@
<link rel="icon" href="logo.svg"/>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
+ <meta name="twitter:card" content="summary" />
+ <meta name="twitter:title" content="oriole.systems" />
+ <meta name="twitter:description" content="an oriole's pendent nest" />
+ <meta name="twitter:image" content="https://oriole.systems/logo.webp" />
</head>
<body class="frontpage">
<nav class="main" data-sblg-nav="true" data-sblg-navcontent="true">
diff --git a/templates/post.xml b/templates/post.xml
index bfa39c7..0f1ec5f 100644
--- a/templates/post.xml
+++ b/templates/post.xml
@@ -7,6 +7,10 @@
<link rel="icon" href="../logo.svg"/>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
+ <meta name="twitter:card" content="summary" />
+ <meta name="twitter:title" content="${sblg-titletext}" />
+ <meta name="twitter:description" content="oriole.systems · an oriole's pendent nest" />
+ <meta name="twitter:image" content="https://oriole.systems/logo.webp" />
</head>
<body class="post">
<article data-sblg-article="true" data-sblg-permlink="false"></article>