Improve handling of meta description
This commit is contained in:
parent
514e84831c
commit
a81ef5e28b
2 changed files with 28 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
<meta name="author" content="{{ site.author }}">
|
||||
|
||||
{% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}
|
||||
<meta name="description" content="{{ description | strip_newlines | strip_html | truncate:150 }}">
|
||||
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
|
||||
{% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
|
||||
|
||||
<!-- http://t.co/dKP3o1e -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue