diff --git a/_includes/post-list-frontpage.html b/_includes/post-list-frontpage.html index c842bb58c085ba28dd151bae60862019efea492c..ea1bbb77e56e68138a2cf7b4e297c8a67826ff85 100644 --- a/_includes/post-list-frontpage.html +++ b/_includes/post-list-frontpage.html @@ -5,7 +5,7 @@ <li class="item item--post"> <article class="article article--post"> - <h2><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title | markdownify }}</a></h2> + <h2><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title | markdownify | remove: '<p>' | remove: '</p>' }}</a></h2> {% include post-meta.html %} {{ page.excerpt | strip_html | markdownify | truncatewords: 60 }} diff --git a/_includes/post-list.html b/_includes/post-list.html index 69fba8c493c68c93c9180dfb166e71d92cbc054d..365be2f23c26c5a0122bc655ec59e39428b645d3 100644 --- a/_includes/post-list.html +++ b/_includes/post-list.html @@ -5,7 +5,7 @@ <li class="item item--post"> <article class="article article--post"> - <h2><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title | markdownify }}</a></h2> + <h2><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title | markdownify | remove: '<p>' | remove: '</p>' }}</a></h2> {% include post-meta.html %} {{ page.excerpt | strip_html | markdownify | truncatewords: 60 }} @@ -22,7 +22,7 @@ <li class="item item--post"> <article class="article article--post"> - <h2><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title | markdownify }}</a></h2> + <h2><a href="{{ site.baseurl }}{{ page.url }}">{{ page.title | markdownify | remove: '<p>' | remove: '</p>' }}</a></h2> {% include post-meta.html %} {{ page.excerpt | strip_html | markdownify | truncatewords: 60 }} diff --git a/_layouts/post.html b/_layouts/post.html index fa31aee606eb5bc44cf0f71dc24fe95e8266e612..44b5a4d532736c0d023c6cf235a76816868f0af9 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -10,7 +10,7 @@ layout: default <article class="article article--post blogpost content typeset"> - <h1>{{ page.title | markdownify}}</h1> + <h1>{{ page.title | markdownify | remove: '<p>' | remove: '</p>' }}</h1> {% include post-meta.html %} {{ content }}