opengraph website metadata

main
Bob Mottram 2021-11-07 23:26:40 +00:00
parent bc8bdf8a8a
commit d88e5cef45
1 changed files with 17 additions and 1 deletions

View File

@ -764,8 +764,24 @@ def htmlHeaderWithWebsiteMarkup(cssFilename: str, instanceTitle: str,
' ]\n' + \
' }\n' + \
' </script>\n'
ogMetadata = \
' <meta content="Epicyon hosted on ' + domain + \
'" property="og:site_name" />\n' + \
' <meta content="' + httpPrefix + '://' + domain + \
'/about" property="og:url" />\n' + \
' <meta content="website" property="og:type" />\n' + \
' <meta content="' + instanceTitle + \
'" property="og:title" />\n' + \
' <meta content="' + httpPrefix + '://' + domain + \
'/logo.png" property="og:image" />\n' + \
' <meta content="' + systemLanguage + \
'" property="og:locale" />\n' + \
' <meta content="summary_large_image" property="twitter:card" />\n'
htmlStr = \
htmlHeaderWithExternalStyle(cssFilename, instanceTitle, websiteMarkup,
htmlHeaderWithExternalStyle(cssFilename, instanceTitle,
ogMetadata + websiteMarkup,
systemLanguage)
return htmlStr