From 92573215477d7936989152e8f277d0f29d805dd9 Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Wed, 27 Jan 2021 21:19:21 +0530
Subject: [PATCH] Add description to other layouts
- helps adding description to sub-sections,
search, terms, archive pages
---
layouts/_default/archives.html | 5 +++++
layouts/_default/list.html | 5 +++++
layouts/_default/search.html | 5 +++++
layouts/_default/terms.html | 7 ++++++-
4 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html
index 22b5d9ae..5daf2aae 100644
--- a/layouts/_default/archives.html
+++ b/layouts/_default/archives.html
@@ -2,6 +2,11 @@
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 9d805c50..9518ebf5 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -7,6 +7,11 @@
{{- if not .IsHome | and .Title }}
{{- end }}
diff --git a/layouts/_default/search.html b/layouts/_default/search.html
index 09894327..4d0c415c 100644
--- a/layouts/_default/search.html
+++ b/layouts/_default/search.html
@@ -8,6 +8,11 @@
+ {{- if .Description }}
+
+ {{ .Description }}
+
+ {{- end }}
{{- if not (.Param "hideMeta") }}
{{- if .IsTranslated -}}
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index adbd2f53..b0919875 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -3,6 +3,11 @@
{{- if .Title }}
{{- end }}
@@ -19,4 +24,4 @@
{{- end }}
-{{ end }}{{/* end main */}}
\ No newline at end of file
+{{ end }}{{/* end main */}}