Better OG Descp
This commit is contained in:
parent
789ddff266
commit
43f1da624e
|
@ -14,8 +14,15 @@
|
|||
{{- end -}}
|
||||
|
||||
<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 name="twitter:title" content="{{ $title }} | {{ $siteTitle }}" />
|
||||
|
||||
<meta property="og:image" content="{{ .Site.Params.og_image }}"/>
|
||||
<meta itemprop="name" content="{{ $title }} | {{ $siteTitle }}" />
|
||||
<meta name="application-name" content="{{ $title }} | {{ $siteTitle }}" />
|
||||
|
@ -23,7 +30,7 @@
|
|||
{{ with .OutputFormats.Get "rss" -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
<meta name="description" content="{{ $.Param "description" }}">
|
||||
|
||||
{{- template "_internal/opengraph.html" . -}}
|
||||
{{- template "_internal/twitter_cards.html" . -}}
|
||||
{{ if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}}
|
||||
|
|
Loading…
Reference in a new issue