From 1faef362e3647ef6d7fb83d5f7341c0bbfdb3c36 Mon Sep 17 00:00:00 2001 From: Nishant Srivastava Date: Tue, 3 Mar 2020 22:20:23 +0100 Subject: [PATCH 1/2] fix issue with tags/keywords not set --- layouts/partials/head/meta.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html index b223588..5e5fc68 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/partials/head/meta.html @@ -3,9 +3,13 @@ {{ end }} {{ if isset .Params "keywords" }} - + {{ with $.Params.keywords }} + + {{ end }} {{ else if isset .Params "tags" }} - + {{ with $.Params.tags }} + + {{ end }} {{ end }} From 5dd7ec5263b025a61b9e1e3f998d1feac39a5db0 Mon Sep 17 00:00:00 2001 From: Nishant Srivastava Date: Tue, 3 Mar 2020 23:02:51 +0100 Subject: [PATCH 2/2] remove the if staments --- layouts/partials/head/meta.html | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html index 5e5fc68..1993d0b 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/partials/head/meta.html @@ -2,14 +2,11 @@ {{ end }} -{{ if isset .Params "keywords" }} - {{ with $.Params.keywords }} - - {{ end }} -{{ else if isset .Params "tags" }} - {{ with $.Params.tags }} - - {{ end }} +{{ with $.Params.keywords }} + +{{ end }} +{{ with $.Params.tags }} + {{ end }}