Merge pull request #67 from Lee-W/master
Add striptags to article title
This commit is contained in:
commit
14543a55d8
@ -1,5 +1,5 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block title %}{{ article.title }}{% endblock %}
|
{% block title %}{{ article.title|striptags }}{% endblock %}
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
@ -29,7 +29,7 @@
|
|||||||
{% for name,link in SOCIAL if name in ['twitter'] %}
|
{% for name,link in SOCIAL if name in ['twitter'] %}
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<meta name="twitter:site" content="@{{ link|replace('http://', 'https://')|replace('https://twitter.com/', '') }}">
|
<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 %}
|
||||||
{% if article.twitter_image|lower|truncate(4, True, '') == "http" %}
|
{% if article.twitter_image|lower|truncate(4, True, '') == "http" %}
|
||||||
@ -61,7 +61,7 @@
|
|||||||
<meta property="article:author" content="{{ SITEURL }}/{{ author.url }}">
|
<meta property="article:author" content="{{ SITEURL }}/{{ author.url }}">
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}">
|
<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 }}">
|
<meta property="article:published_time" content="{{ article.date }}">
|
||||||
{% if description %}
|
{% if description %}
|
||||||
<meta property="og:description" content="{{ description }}">
|
<meta property="og:description" content="{{ description }}">
|
||||||
@ -101,7 +101,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
<div class="post-heading">
|
<div class="post-heading">
|
||||||
<h1>{{ article.title }}</h1>
|
<h1>{{ article.title|striptags }}</h1>
|
||||||
{% if article.headline %}
|
{% if article.headline %}
|
||||||
<h3 class="subheading">{{ article.headline }}</h3>
|
<h3 class="subheading">{{ article.headline }}</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user