only include description meta tag when there is a page-specific description

This commit is contained in:
Dean Attali 2015-03-31 00:49:22 -07:00
parent db17385d13
commit 12cd7369f4

View File

@ -6,7 +6,10 @@
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="author" content="{{ site.author.name }}" />
<meta name="description" content="{% if page.subtitle %}{{ page.subtitle }}{% else %}{{ site.description }}{% endif %}">
{% if page.subtitle %}
<meta name="description" content="{{ page.subtitle }}">
{% endif %}
<link rel="alternate" type="application/rss+xml" title="{{ site.title }} - {{ site.description }}" href="{{ site.baseurl }}/feed.xml" />
@ -64,4 +67,4 @@
<meta property="og:image" content="" />
{% endif %}
</head>
</head>