From 340bd14a97dc9665d1b9d0749b9aa54be72690e5 Mon Sep 17 00:00:00 2001
From: Sidharth R <122173059+hugo-sid@users.noreply.github.com>
Date: Tue, 14 Feb 2023 23:51:31 +0530
Subject: [PATCH] fix: meta description
---
layouts/partials/meta/standard.html | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/layouts/partials/meta/standard.html b/layouts/partials/meta/standard.html
index 8b7fc92a..986c5624 100644
--- a/layouts/partials/meta/standard.html
+++ b/layouts/partials/meta/standard.html
@@ -9,10 +9,21 @@
-
-
-
-
+{{/* Define empty variable description */}}
+{{- $description := "" -}}
+
+{{/* If description is defined in front matter, use it */}}
+{{- if .Params.description -}}
+ {{- $description = trim .Params.description "\n" -}}
+{{/* If description is not defined in front matter, use site description */}}
+{{- else if .Site.Params.description -}}
+ {{- $description = trim .Site.Params.description "\n" -}}
+{{- end -}}
+
+
+
+
+