From 528b67df596feab2f3b80ecce1c9716123a4d8c5 Mon Sep 17 00:00:00 2001
From: Jerry Sky <jwroczynski@gmail.com>
Date: Mon, 28 Dec 2020 08:02:28 +0100
Subject: [PATCH] templates: added the `description` metatag to both html4 and
 html5 templates (#6982)

The `description` meta tag will make the generated HTML documents more complete and SEO-friendly.
---
 data/templates/default.html4 | 3 +++
 data/templates/default.html5 | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/data/templates/default.html4 b/data/templates/default.html4
index f0dd8880e..deba57a7b 100644
--- a/data/templates/default.html4
+++ b/data/templates/default.html4
@@ -12,6 +12,9 @@ $if(date-meta)$
 $endif$
 $if(keywords)$
   <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
+$endif$
+$if(description)$
+  <meta name="description" content="$description$" />
 $endif$
   <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
   <style type="text/css">
diff --git a/data/templates/default.html5 b/data/templates/default.html5
index 0676215d4..dd7dc3212 100644
--- a/data/templates/default.html5
+++ b/data/templates/default.html5
@@ -12,6 +12,9 @@ $if(date-meta)$
 $endif$
 $if(keywords)$
   <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
+$endif$
+$if(description)$
+  <meta name="description" content="$description$" />
 $endif$
   <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
   <style>