Permalink
Browse files

Change the way the HTML description meta is generated

  • Loading branch information...
1 parent 2f2e08a commit 7743e879d0d907e81d5d95d94f7185c8b907f4da @Dinduks committed Feb 20, 2013
Showing with 1 addition and 11 deletions.
  1. +1 −11 source/_includes/head.html
View
@@ -7,17 +7,7 @@
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
<meta name="author" content="{{ site.author }}">
- {% capture description %}
- {% if page.title %}
- {% if page.description %}
- {{ page.description }}
- {% else %}
- {{ content | raw_content | strip_html | condense_spaces | truncate:150 }}
- {% endif %}
- {% else %}
- {{ site.description }}
- {% endif %}
- {% endcapture %}
+ {% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}{% endcapture %}
<meta name="description" content="{{ description }}">
{% capture keywords %}{% if page.keywords %}{{ page.keywords }}{% elsif site.keywords %}{{ site.keywords }}{% endif %}{% endcapture %}

0 comments on commit 7743e87

Please sign in to comment.