tweak: add twitter previews.

This commit is contained in:
Nuno Sempere 2022-11-18 13:45:30 +00:00
parent 7ccdaadc60
commit abe2c8d857

View File

@ -12,8 +12,13 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
% # Legacy charset declaration for backards compatibility with non-html5 browsers. % # Legacy charset declaration for backards compatibility with non-html5 browsers.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
% # echo <meta property='og:image' content='$req_path'>"
<meta property="og:image" content="https://cards.nunosempere.com/api/dynamic-image?endpoint=%($req_path%)"> <meta property="og:image" content="https://cards.nunosempere.com/api/dynamic-image?endpoint=%($req_path%)">
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Measure is unceasing" />
<meta name="twitter:description" content="%($pageTitle%)" />
<meta name="twitter:url" content="https://nunosempere.com/" />
<meta name="twitter:image" content="https://cards.nunosempere.com/api/dynamic-image?endpoint=%($req_path%)" />
<meta name="twitter:site" content="@NunoSempere" />
% if(! ~ $#meta_description 0) % if(! ~ $#meta_description 0)
% echo ' <meta name="description" content="'$"meta_description'">' % echo ' <meta name="description" content="'$"meta_description'">'