From 92e5270060c97325b610d8877ee28200c4588682 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 27 Aug 2023 13:05:45 +0530 Subject: added opengraph tags --- layouts/_default/baseof.html | 2 +- layouts/partials/head.html | 16 +++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 9bc0b22..ad5c70f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{- partial "head.html" . -}} {{ if ne .Kind "home" }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 82e2925..3dd4906 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,13 +2,13 @@ - - + - - + + + @@ -20,11 +20,5 @@ {{ end }} - - {{ if .Title }} - {{ .Title }}{{ if eq .Section "blog" }} Blog Posts{{ end }} | {{if .Site.Params.domain }}{{ .Site.Params.domain }}{{ else }}{{ .Site.Title }}{{ end }} - {{ else }} - {{ .Site.Title }} - {{ end }} - + {{ if .Title }}{{ .Title }}{{ if eq .Section "blog" }}{{ if not .IsPage }} Blog Posts{{ end }}{{ end }} | {{if .Site.Params.domain }}{{ .Site.Params.domain }}{{ else }}{{ .Site.Title }}{{ end }}{{ else }}{{ .Site.Title }}{{ end }} -- cgit v1.2.3