1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

strip html from twitter cards excerpt

This commit is contained in:
Matthias Kretschmann 2013-12-16 01:08:03 +01:00
parent 11170c4a2c
commit da926a0487

View File

@ -97,7 +97,7 @@
{% if page.description %}
<meta name="twitter:description" content="{{ page.description }}">
{% else %}
<meta name="twitter:description" content="{{ page.excerpt }}">
<meta name="twitter:description" content="{{ page.excerpt | strip_html }}">
{% endif %}
{% if page.image %}
<meta name="twitter:image:src" content="{{ site.url }}/media/{{ page.image }}">