Add Meta Description to Head Template

Now, the meta description tag will contain the text specified within the _config.yml file.
Also, the tag will only be displayed on the landing page.
This commit is contained in:
Dominik Prodinger 2018-07-23 19:46:42 +02:00 committed by GitHub
parent 13412353f8
commit 3a5cf334ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if page.title == "Home" %}
<meta name="description" content="{{ site.description }}">
{% endif %}
<title>
{% if page.title == "Home" %}