added basic open graph metadata

This commit is contained in:
Jfriedli 2021-03-21 16:34:55 +01:00
parent 524e055e8c
commit ac67c59fe2
2 changed files with 20 additions and 0 deletions

BIN
static/og.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 KiB

View file

@ -9,6 +9,26 @@
{% assets 'css' %}
<link rel="stylesheet" href="{{ ASSET_URL }}">
{% endassets %}
<!-- Search Engine -->
<meta name="description" content="Keep your data, trash your meta!">
<meta name="image" content="{{ url_for('static', filename='og.png', _external=True) }}">
<!-- Schema.org for Google -->
<meta itemprop="name" content="MAT2 Web">
<meta itemprop="description" content="Keep your data, trash your meta!">
<meta itemprop="image" content="{{ url_for('static', filename='og.png', _external=True) }}">
<!-- Twitter -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="MAT2 Web">
<meta name="twitter:description" content="Keep your data, trash your meta!">
<meta name="twitter:image:src" content="{{ url_for('static', filename='og.png', _external=True) }}">
<!-- Open Graph general (Facebook, Pinterest & Google+) -->
<meta name="og:title" content="MAT2 Web">
<meta name="og:description" content="Keep your data, trash your meta!">
<meta name="og:image" content="{{ url_for('static', filename='og.png', _external=True) }}">
<meta name="og:url" content="{{ url_for('routes.upload_file', _external=True) }}">
<meta name="og:site_name" content="MAT2 Web">
<meta name="og:type" content="website">
</head>
<body class="flex flex-col h-screen justify-between">