Skip to content

Commit

Permalink
Change the way the HTML description meta is generated
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinduks committed Feb 20, 2013
1 parent 2f2e08a commit 7743e87
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions source/_includes/head.html
Expand Up @@ -7,17 +7,7 @@
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title> <title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
<meta name="author" content="{{ site.author }}"> <meta name="author" content="{{ site.author }}">


{% capture description %} {% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}{% endcapture %}
{% if page.title %}
{% if page.description %}
{{ page.description }}
{% else %}
{{ content | raw_content | strip_html | condense_spaces | truncate:150 }}
{% endif %}
{% else %}
{{ site.description }}
{% endif %}
{% endcapture %}
<meta name="description" content="{{ description }}"> <meta name="description" content="{{ description }}">


{% capture keywords %}{% if page.keywords %}{{ page.keywords }}{% elsif site.keywords %}{{ site.keywords }}{% endif %}{% endcapture %} {% capture keywords %}{% if page.keywords %}{{ page.keywords }}{% elsif site.keywords %}{{ site.keywords }}{% endif %}{% endcapture %}
Expand Down

0 comments on commit 7743e87

Please sign in to comment.