mirror of
https://github.com/fruworg/themu.git
synced 2024-11-16 07:07:16 +03:00
Better OG Descp
This commit is contained in:
parent
789ddff266
commit
43f1da624e
@ -14,8 +14,15 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<meta property="og:description" content="{{ .Params.description }}" />
|
||||||
|
<meta name="twitter:description" content="{{ .Params.description }}" />
|
||||||
|
<meta name="description" content="{{ $.Param "description" }}" />
|
||||||
|
<meta name="description" content="{{ $.Params.description }}" />
|
||||||
|
|
||||||
<meta property="og:title" content="{{ $title }} | {{ $siteTitle }}" />
|
<meta property="og:title" content="{{ $title }} | {{ $siteTitle }}" />
|
||||||
<meta name="twitter:title" content="{{ $title }} | {{ $siteTitle }}" />
|
<meta name="twitter:title" content="{{ $title }} | {{ $siteTitle }}" />
|
||||||
|
|
||||||
<meta property="og:image" content="{{ .Site.Params.og_image }}"/>
|
<meta property="og:image" content="{{ .Site.Params.og_image }}"/>
|
||||||
<meta itemprop="name" content="{{ $title }} | {{ $siteTitle }}" />
|
<meta itemprop="name" content="{{ $title }} | {{ $siteTitle }}" />
|
||||||
<meta name="application-name" content="{{ $title }} | {{ $siteTitle }}" />
|
<meta name="application-name" content="{{ $title }} | {{ $siteTitle }}" />
|
||||||
@ -23,7 +30,7 @@
|
|||||||
{{ with .OutputFormats.Get "rss" -}}
|
{{ with .OutputFormats.Get "rss" -}}
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
<meta name="description" content="{{ $.Param "description" }}">
|
|
||||||
{{- template "_internal/opengraph.html" . -}}
|
{{- template "_internal/opengraph.html" . -}}
|
||||||
{{- template "_internal/twitter_cards.html" . -}}
|
{{- template "_internal/twitter_cards.html" . -}}
|
||||||
{{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
|
{{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user