Added more suitable image for OpenGraph.

This commit is contained in:
Greenscreener 2019-12-05 18:19:30 +01:00
parent ff45a682ee
commit e91b34b73e
2 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -12,11 +12,11 @@
<meta name="theme-color" content="#0b2a37">
{{- end }}
{{ block "og" . -}}
{{ $favicon := resources.Get "img/favicon.ico" }}
{{ $ogimg := resources.Get "img/og-img.png" }}
{{ if eq .IsPage true }}
<meta property="og:title" content="{{ .Title }} | {{ .Site.Title }}">
<meta property="og:type" content="article">
<meta property="og:image" content="{{ $favicon.Permalink }}">
<meta property="og:image" content="{{ $ogimg.Permalink }}">
<meta property="og:image:alt" content="{{ T "logo-alt" }}" />
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:description" content="{{ .Summary | truncate 120 }}">
@ -37,7 +37,7 @@
{{ if eq .IsHome true }}
<meta property="og:title" content="Pátek.cz">
<meta property="og:type" content="website">
<meta property="og:image" content="{{ $favicon.Permalink }}">
<meta property="og:image" content="{{ $ogimg.Permalink }}">
<meta property="og:image:alt" content="{{ T "logo-alt" }}" />
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:description" content="{{ .Summary }}">