Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/athul/archie.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathul <athul8720@gmail.com>2020-06-24 11:05:48 +0300
committerathul <athul8720@gmail.com>2020-06-24 11:05:48 +0300
commit43f1da624e15ff42f01c5f77851523a7b8088d3f (patch)
tree7648bf55c7e0add709d849cc0020997956417113
parent789ddff2663c05141e0eed9186ae247eb3700852 (diff)
Better OG Descp
-rw-r--r--layouts/partials/header.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 756bccb..2034c03 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -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) -}}