summaryrefslogtreecommitdiffstatshomepage
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
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.
-rw-r--r--Makefile2
-rw-r--r--logo.webpbin0 -> 7556 bytes
-rw-r--r--templates/index.xml4
-rw-r--r--templates/post.xml4
4 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7df1698..b141a8f 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,6 @@ clean:
rm -f posts/*.html index.html atom.xml style.css man.css
deploy:
- @rsync -avhR $(POSTS_HTML) posts/img fonts index.html style.css man.css logo.svg atom.xml coleridge:www/oriole.systems/
+ @rsync -avhR $(POSTS_HTML) posts/img fonts index.html style.css man.css logo.{svg,webp} atom.xml coleridge:www/oriole.systems/
.PHONY: clean deploy site
diff --git a/logo.webp b/logo.webp
new file mode 100644
index 0000000..f7f49f7
--- /dev/null
+++ b/logo.webp
Binary files differ
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>