add ogg and structured data

This commit is contained in:
2020-07-09 15:53:30 +02:00
parent feb5595379
commit 55c8d53337
3 changed files with 24 additions and 2 deletions

View File

@@ -30,7 +30,10 @@ The page and most of it's content is configured via json. To use the CalDav-even
The main Config ``config.json`` which must be placed in the project-root must contain the following values:
{
"siteTitle":"the default site title",
"siteTitle" : "the default site title",
"siteDescription" : "a description for this site",
"siteLogo" : "url to logo",
"siteURL": "the url of this site"
}
Additionally it may contain the following information:

View File

@@ -1,5 +1,9 @@
{
"siteTitle":"Site Title",
"siteDescription" : "Site Description",
"siteLogo" : "Site Logo URL",
"siteURL" : "Site Base URL",
"teamspeak-server" : "teamspeak.com",
"discord-server" : "https://discord.gg/",
"facebook" : "https://www.facebook.com/",

View File

@@ -11,4 +11,19 @@
<!-- Bootstrap core JS -->
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ conf['siteTitle'] }}" />
<meta property="og:description" content="{{ conf['siteDescription'] }}" />
<meta property="og:url" content="{{ url_for(request.endpoint) }}" />
<meta property="og:image" content="{{ conf['siteLogo'] }}">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"url": "{{ conf['siteURL'] }}",
"logo": "{{ conf['siteLogo'] }}"
}
</script>