Merge pull request #67 from Lee-W/master

Add striptags to article title
This commit is contained in:
Gilson Filho 2017-06-26 10:19:19 -03:00 committed by GitHub
commit 14543a55d8
1 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}{{ article.title }}{% endblock %}
{% block title %}{{ article.title|striptags }}{% endblock %}
{% block head %}
{{ super() }}
@ -29,7 +29,7 @@
{% for name,link in SOCIAL if name in ['twitter'] %}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@{{ link|replace('http://', 'https://')|replace('https://twitter.com/', '') }}">
<meta name="twitter:title" content="{{ article.title }}">
<meta name="twitter:title" content="{{ article.title|striptags }}">
{% if article.twitter_image %}
{% if article.twitter_image|lower|truncate(4, True, '') == "http" %}
@ -61,7 +61,7 @@
<meta property="article:author" content="{{ SITEURL }}/{{ author.url }}">
{% endfor %}
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}">
<meta property="og:title" content="{{ article.title }}">
<meta property="og:title" content="{{ article.title|striptags }}">
<meta property="article:published_time" content="{{ article.date }}">
{% if description %}
<meta property="og:description" content="{{ description }}">
@ -101,7 +101,7 @@
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-heading">
<h1>{{ article.title }}</h1>
<h1>{{ article.title|striptags }}</h1>
{% if article.headline %}
<h3 class="subheading">{{ article.headline }}</h3>
{% endif %}