Use HTML5 syntax for Open Graph meta tags

This commit is contained in:
Luca 2022-08-12 22:57:34 +02:00
parent ba708d0738
commit 122814703a
1 changed files with 6 additions and 6 deletions

View File

@ -4,16 +4,16 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta property="og:site_name" content="{{ .Site.Title }}">
<meta property="og:title" content="{{ .Site.Title }} {{ .Title }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:image" content="{{ .Site.BaseURL }}/events-header.png">
<meta property="og:locale" content="{{ .Site.LanguageCode }}">
<title>{{ block "title" . }}{{ .Title }} &ndash; {{ .Site.Title }}{{ end }}</title> <title>{{ block "title" . }}{{ .Title }} &ndash; {{ .Site.Title }}{{ end }}</title>
<link rel="icon" href="/icon.svg" sizes="any" type="image/svg+xml"> <link rel="icon" href="/icon.svg" sizes="any" type="image/svg+xml">
{{ $style := resources.Get "style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }} {{ $style := resources.Get "style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}"> <link rel="stylesheet" href="{{ $style.RelPermalink }}">
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:title" content="{{ .Site.Title }} {{ .Title }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:image" content="{{ .Site.BaseURL }}/events-header.png" />
<meta property="og:locale" content="{{ .Site.LanguageCode }}" />
</head> </head>
<body> <body>
<header> <header>