diff options
author | Wolfgang Müller | 2019-07-22 17:02:29 +0200 |
---|---|---|
committer | Wolfgang Müller | 2019-07-22 17:08:11 +0200 |
commit | 9589e97b812cf368c583f38998eba001bbb72de0 (patch) | |
tree | 28ca8ec14636ddd0e7fc66f7cba9b0a2f41aadab | |
parent | 2036984ac0c74f98a17019c67e4c3053a1a5849a (diff) | |
download | site-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 '')
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | logo.webp | bin | 0 -> 7556 bytes | |||
-rw-r--r-- | templates/index.xml | 4 | ||||
-rw-r--r-- | templates/post.xml | 4 |
4 files changed, 9 insertions, 1 deletions
@@ -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 Binary files differnew file mode 100644 index 0000000..f7f49f7 --- /dev/null +++ b/logo.webp 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> |