ctucx.git: gallery

static-site-generator for image-galleries [used @ photos.ctu.cx]

commit ac46ef1cd764f0b523ed9b5c38a42b1680dd23e1
parent b68eea56add1d05fc63e79abcdb8b87ffb7e0b9a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 13 Mar 2021 18:13:47 +0100

picture.html: add open graph and twitter tags
1 file changed, 14 insertions(+), 0 deletions(-)
M
src/assets/picture.html
|
14
++++++++++++++
diff --git a/src/assets/picture.html b/src/assets/picture.html
@@ -13,7 +13,21 @@
 		<meta name="apple-mobile-web-app-status-bar-style" content="black">
 		<meta name="apple-mobile-web-app-capable" content="yes">
 
+		<meta property="og:title" content="{{name}}" />
+		<meta property="og:description" content="Image {{name}}{{#takestamp}} taken on {{takestamp}}{{/takestamp}}" />
 		<meta property="og:image" content="medium/{{filename}}" />
+		<meta property="og:image:type" content="image/jpeg" />
+		<meta property="og:image:width" content="{{thumbWidth}}" />
+		<meta property="og:image:height" content="{{thumbHeight}}" />
+		{{#description}}
+		<meta property="og:image:alt" content="{{description}}" />
+		{{/description}}
+
+		<meta name="twitter:card" content="summary">
+		<meta property="twitter:title" content="{{name}}" />
+		<meta property="twitter:description" content="Image {{name}}{{#takestamp}} taken on {{takestamp}}{{/takestamp}}" />
+		<meta property="twitter:image" content="medium/{{filename}}" />
+		<meta property="twitter:creator" content="{{siteAuthor}}" />
 
 		<link type="text/css" rel="stylesheet" href="/style.css">
 		<link rel="shortcut icon" href="favicon.ico">