Added more suitable image for OpenGraph.
This commit is contained in:
parent
ff45a682ee
commit
e91b34b73e
BIN
themes/patek/assets/img/og-img.png
Normal file
BIN
themes/patek/assets/img/og-img.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
@ -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 }}">
|
||||
|
Loading…
Reference in New Issue
Block a user