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.
This commit is contained in:
Jerry Sky 2020-12-28 08:02:28 +01:00 committed by GitHub
parent 19d4e43605
commit 528b67df59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -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">

View file

@ -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>