Optimize the DOM of post link on homepage

This commit is contained in:
Cotes Chung 2020-12-29 15:37:32 +08:00
parent a20fd5bf6f
commit 08fbd06c63

View file

@ -49,9 +49,9 @@ layout: page
{% for post in posts %}
<div class="post-preview">
<a href="{{ post.url | relative_url }}">
<h1>{{ post.title }}</h1>
</a>
<h1>
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</h1>
<div class="post-content">
<p>