aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorJerry Sky <jwroczynski@gmail.com>2020-12-28 08:02:28 +0100
committerGitHub <noreply@github.com>2020-12-27 23:02:28 -0800
commit528b67df596feab2f3b80ecce1c9716123a4d8c5 (patch)
tree85d2108a1c5d2cc095610d1710bc35fe4040c568 /data/templates
parent19d4e43605e957b40193d900c5a28132c5b5b9c0 (diff)
downloadpandoc-528b67df596feab2f3b80ecce1c9716123a4d8c5.tar.gz
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.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default.html43
-rw-r--r--data/templates/default.html53
2 files changed, 6 insertions, 0 deletions
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
@@ -13,6 +13,9 @@ $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">
$styles.html()$
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
@@ -13,6 +13,9 @@ $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>
$styles.html()$