mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2026-01-22 03:07:37 +01:00
add ogg and structured data
This commit is contained in:
@@ -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:
|
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:
|
Additionally it may contain the following information:
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
"siteTitle":"Site Title",
|
"siteTitle":"Site Title",
|
||||||
|
"siteDescription" : "Site Description",
|
||||||
|
"siteLogo" : "Site Logo URL",
|
||||||
|
"siteURL" : "Site Base URL",
|
||||||
|
|
||||||
"teamspeak-server" : "teamspeak.com",
|
"teamspeak-server" : "teamspeak.com",
|
||||||
"discord-server" : "https://discord.gg/",
|
"discord-server" : "https://discord.gg/",
|
||||||
"facebook" : "https://www.facebook.com/",
|
"facebook" : "https://www.facebook.com/",
|
||||||
|
|||||||
@@ -12,3 +12,18 @@
|
|||||||
<!-- Bootstrap core JS -->
|
<!-- Bootstrap core JS -->
|
||||||
<script src="/static/js/jquery.min.js"></script>
|
<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>
|
||||||
|
|||||||
Reference in New Issue
Block a user