Fixing Twitter Cards descriptino to strip tags first, then truncate.

This commit is contained in:
Samuel Clay 2015-04-07 10:51:19 -07:00
parent 487bc4afb0
commit 1437d76be0

View file

@ -28,7 +28,7 @@
<meta property="og:image" content="{{ active_story.image_url }}">
{% endif %}
<meta property="og:title" content="{{ active_story.story_title }}">
<meta property="og:description" content="{{ active_story.story_content|slice:":300"|striptags|addslashes|safe }}">
<meta property="og:description" content="{{ active_story.story_content|striptags|slice:":300"|addslashes|safe }}">
<meta property="article:published_time" content="{{ active_story.iso8601 }}">
<meta property="article:author" content="{{ active_story.story_authors }}">
<meta property="article:tag" content="{{ active_story.tags }}">
@ -43,7 +43,7 @@
<meta name="twitter:site" content="@newsblur">
<meta name="twitter:creator" content="@{{ user_social_services.twitter_username }}">
<meta name="twitter:title" content="{{ active_story.story_title }}">
<meta name="twitter:description" content="{{ active_story.story_content|slice:":300"|striptags|addslashes|safe }}">
<meta name="twitter:description" content="{{ active_story.story_content|striptags|slice:":300"|addslashes|safe }}">
{% endif %}
{% include_stylesheets "blurblog" %}