1
0
Fork 0
mirror of https://github.com/safing/web synced 2025-04-12 23:19:09 +00:00

Remove <p> tags from markdownified blog summary

without these tags it would not correctly embed within the defined <p> tag with custom classes but `markdownify` would wrap it into its own <p> tag and leave the defined <p> tag empty
This commit is contained in:
davegson 2021-05-05 18:44:55 +02:00
parent bd9d7d6c01
commit 8c7689c900

View file

@ -5,8 +5,8 @@ layout: page_container
<div class="text-center">
<h1 >{{ page.title }}</h1>
{% if page.summary %}
<p class="text-left max-w-2xl mx-auto">
{{ page.summary | markdownify }}
<p class="text-left max-w-2xl mx-auto" >
{{ page.summary | markdownify | remove: "<p>" | remove: "</p>" }}
</p>
{% endif %}
<p>{{ page.date | date: "%B %-d, %Y" }} • Written by <a href="{{ site.team_url }}#{{ page.author | slugify }}">{{ page.author | capitalize }}</a></p>