Browse Source

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

master
Dean Attali 10 years ago
parent
commit
12cd7369f4
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      _includes/head.html

+ 5
- 2
_includes/head.html 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>

|||||||
x
 
000:0
Loading…
Cancel
Save