-
Malte Schmitz authored
Having <p> inside <h2> or <h1> applies the CSS style line-height: 2rem which looks not good
Malte Schmitz authoredHaving <p> inside <h2> or <h1> applies the CSS style line-height: 2rem which looks not good
post-list.html 1.02 KiB
{% if paginator.posts %}
<section class="section typeset">
<ul class="list list--posts">
{% for page in paginator.posts %}
<li class="item item--post">
<article class="article article--post">
<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 }}
</article>
</li>
{% endfor %}
</ul>
{% include post-pagination.html %}
</section>
{% else %}
<section class="section typeset">
<ul class="list list--posts">
{% for page in site.posts %}
<li class="item item--post">
<article class="article article--post">
<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 }}
</article>
</li>
{% endfor %}
</ul>
</section>
{% endif %}