Skip to content

Commit 20de0da

Browse files
committed
Upate og tags
1 parent 13d0d62 commit 20de0da

7 files changed

Lines changed: 43 additions & 9 deletions

File tree

_includes/head.html

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,49 @@
33
<title>
44
{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}
55
</title>
6+
7+
<!-- Open Graph Meta Tags -->
68
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
7-
<meta property="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
9+
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
10+
<meta property="og:type" content="website">
11+
<meta property="og:url" content="{{ page.url | absolute_url }}">
12+
<meta property="og:locale" content="de_DE">
13+
<meta property="og:locale:alternate" content="en_US">
14+
<meta property="og:site_name" content="{{ site.title }}">
815

9-
<!-- description -->
10-
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
16+
<!-- Open Graph Image Tags -->
17+
{% if page.og_image %}
18+
<meta property="og:image" content="{{ page.og_image | absolute_url }}">
19+
<meta property="og:image:width" content="1200">
20+
<meta property="og:image:height" content="630">
21+
<meta property="og:image:type" content="image/png">
22+
{% else %}
23+
<meta property="og:image" content="{{ '/assets/images/og-image-default.png' | absolute_url }}">
24+
<meta property="og:image:width" content="1200">
25+
<meta property="og:image:height" content="630">
26+
<meta property="og:image:type" content="image/png">
27+
{% endif %}
28+
29+
<!-- Twitter Card Meta Tags -->
30+
<meta name="twitter:card" content="summary_large_image">
31+
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
1132
<meta name="twitter:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
12-
<meta name="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
33+
{% if page.og_image %}
34+
<meta name="twitter:image" content="{{ page.og_image | absolute_url }}">
35+
{% else %}
36+
<meta name="twitter:image" content="{{ '/assets/images/og-image-default.png' | absolute_url }}">
37+
{% endif %}
38+
<meta name="twitter:image:alt" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
1339

14-
<meta property="og:type" content="website">
15-
<meta content="summary_large_image" name="twitter:card">
16-
<meta content="width=device-width, initial-scale=1" name="viewport">
40+
<!-- Standard Meta Tags -->
41+
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
42+
<meta name="viewport" content="width=device-width, initial-scale=1">
43+
44+
<!-- Favicon & Apple Touch Icon -->
45+
<link href="/assets/images/favicon.png" rel="shortcut icon" type="image/x-icon">
46+
<link href="/assets/images/webclip.jpg" rel="apple-touch-icon">
1747

1848
<!-- CSS -->
1949
<link href="/assets/css/normalize.css" rel="stylesheet" type="text/css">
2050
<link href="/assets/css/webflow.css" rel="stylesheet" type="text/css">
2151
<link href="/assets/css/inog-website.webflow.css" rel="stylesheet" type="text/css">
22-
<link href="/assets/images/favicon.png" rel="shortcut icon" type="image/x-icon">
23-
<link href="/assets/images/webclip.jpg" rel="apple-touch-icon">

_pages/datenschutz.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
permalink: /datenschutz/
66
redirect_from:
77
- /datenschutz.html
8+
og_image: /assets/images/hero-inoeg_sw-p-500.png
89
---
910
<div class="section wf-section">
1011
<div class="block-content">

_pages/impressum.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ sitemap: true
55
permalink: /impressum/
66
redirect_from:
77
- /impressum.html
8+
og_image: /assets/images/hero-inoeg_sw-p-500.png
89
---
910

1011
Innovationsverbund Öffentliche Gesundheit e.V. vertreten durch:

_pages/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- /old-index.html
88
# Used for meta description and open graph, if empty we use the site description
99
description: This is my awesome writeup of this fantastic thing
10+
og_image: /assets/images/hero-inoeg_sw-p-500.png
1011
---
1112
<div class="header-section wf-section">
1213
<div class="hero-block">

_pages/kontakt.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ permalink: /kontakt/
55
redirect_from:
66
- /contact/
77
- /contact-us.html
8+
og_image: /assets/images/hero-inoeg_sw-p-500.png
89
---
910

1011
Sie erreichen uns am Einfachsten per Email unter {{ site.email }}. <br> <br> Bzgl. spezifischer Anfragen können Sie uns auch gerne wie folgt kontaktieren:

_pages/offenerbrief-epa-2025.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
title: Offener Brief EPA 2025
44
permalink: /offenerbrief-epa-2025/
55
description: Fünf Schritte zu mehr Vertrauen in die ePA
6+
og_image: /assets/images/hero-inoeg_sw-p-500.png
67
---
78
<div class="header-section wf-section">
89
<div class="single-hero-block">

_pages/projekte.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
permalink: /projekte/
55
redirect_from:
66
- /projekte.html
7+
og_image: /assets/images/hero-inoeg_sw-p-500.png
78
---
89
<div class="header-section wf-section">
910
<div class="single-hero-block">

0 commit comments

Comments
 (0)