diff options
author | Jerry Sky <jwroczynski@gmail.com> | 2020-12-28 08:02:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-27 23:02:28 -0800 |
commit | 528b67df596feab2f3b80ecce1c9716123a4d8c5 (patch) | |
tree | 85d2108a1c5d2cc095610d1710bc35fe4040c568 /data | |
parent | 19d4e43605e957b40193d900c5a28132c5b5b9c0 (diff) | |
download | pandoc-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')
-rw-r--r-- | data/templates/default.html4 | 3 | ||||
-rw-r--r-- | data/templates/default.html5 | 3 |
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()$ |