From 6476d4150d8e7cfc7306b7fa75e9953c146be886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manish=20Kumar=20=E2=9B=84?= Date: Wed, 31 Jul 2024 09:45:03 +0530 Subject: [PATCH 1/2] fix(seo): meta-tags --- src/site/_includes/components/pageheader.njk | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/site/_includes/components/pageheader.njk b/src/site/_includes/components/pageheader.njk index 60436dde3..4db380993 100644 --- a/src/site/_includes/components/pageheader.njk +++ b/src/site/_includes/components/pageheader.njk @@ -1,4 +1,15 @@ + +{% if metatags %} + {% for name, content in metatags %} + {% if name.includes("og") %} + + {% else %} + + {% endif %} + {% endfor %} +{% endif %} + @@ -30,16 +41,10 @@ {% favicons './src/site/favicon.svg', appleIconBgColor='#123' %} -{% if metatags %} - {% for name, content in metatags %} - - {% endfor %} -{% endif %} - {% if meta.styleSettingsCss %} {% endif %} \ No newline at end of file + From e1a85d820e2b260aece9b8f34a301f55eca2bca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manish=20Kumar=20=E2=9B=84?= Date: Wed, 31 Jul 2024 09:49:27 +0530 Subject: [PATCH 2/2] Replace og with og: --- src/site/_includes/components/pageheader.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site/_includes/components/pageheader.njk b/src/site/_includes/components/pageheader.njk index 4db380993..1c04d01f1 100644 --- a/src/site/_includes/components/pageheader.njk +++ b/src/site/_includes/components/pageheader.njk @@ -2,7 +2,7 @@ {% if metatags %} {% for name, content in metatags %} - {% if name.includes("og") %} + {% if name.includes("og:") %} {% else %}