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:
parent
bd9d7d6c01
commit
8c7689c900
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue