Strip HTML from title's

This commit is contained in:
Michael Rose 2017-03-08 16:07:06 -05:00
parent 4923774857
commit a12a907943
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{% if post.id %} {% if post.id %}
{% assign title = post.title | markdownify | remove: "<p>" | remove: "</p>" %} {% assign title = post.title | markdownify | strip_html %}
{% else %} {% else %}
{% assign title = post.title %} {% assign title = post.title %}
{% endif %} {% endif %}

View File

@ -1,9 +1,9 @@
<header id="intro" role="banner"> <header id="intro" role="banner">
<div class="inner"> <div class="inner">
<div class="intro-text"> <div class="intro-text">
<h1 class="intro-title">{{ page.alt_title | default: page.title | default: site.title | markdownify | remove: '<p>' | remove: '</p>' }}</h1> <h1 class="intro-title">{{ page.alt_title | default: page.title | default: site.title | markdownify | strip_html }}</h1>
{% if page.sub_title %} {% if page.sub_title %}
<p class="intro-subtitle">{{ page.sub_title | markdownify | remove: '<p>' | remove: '</p>' }}</p> <p class="intro-subtitle">{{ page.sub_title | markdownify | strip_html }}</p>
{% endif %} {% endif %}
{% if page.date %} {% if page.date %}