all repos — archie @ 43f1da624e15ff42f01c5f77851523a7b8088d3f

A minimal Hugo Theme

Better OG Descp
athul athul8720@gmail.com
Wed, 24 Jun 2020 13:35:48 +0530
commit

43f1da624e15ff42f01c5f77851523a7b8088d3f

parent

789ddff2663c05141e0eed9186ae247eb3700852

1 files changed, 8 insertions(+), 1 deletions(-)

jump to
M layouts/partials/header.htmllayouts/partials/header.html

@@ -14,8 +14,15 @@ <link rel="icon" type="image/png" href={{ .Site.Params.favicon }} />

{{- 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 @@ <meta property="og:site_name" content="{{ .Site.Params.sitename }}" />

{{ 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) -}}