Skip to content

Commit

Permalink
Add Meta Description to Head Template
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
prdngr authored Jul 23, 2018
1 parent 1341235 commit 3a5cf33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -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" %}
Expand Down

0 comments on commit 3a5cf33

Please sign in to comment.