Add margin between posts on home page

pull/1/head
Dustin 2021-03-08 23:22:33 -06:00
parent 16f3ac61ec
commit a303d84044
2 changed files with 6 additions and 0 deletions

View File

@ -114,6 +114,10 @@ main.main-content {
text-decoration: none;
}
.recent-posts .post-summary {
margin-bottom: 2.5em;
}
.post-date {
font-size: 10pt;
}

View File

@ -16,6 +16,7 @@
<h2>Recent Posts</h2>
{% set blog = get_section(path="blog/_index.md") %}
{% for page in blog.pages | slice(end=3) %}
<div class="post-summary">
<h3 class="post-title"><a href="{{ page.path }}">{{ page.title }}</a></h3>
<div class="post-date">
<time datetime="{{ page.date }}">{{ page.date | date(format="%b %d") }}</time>
@ -25,6 +26,7 @@
{% else %}
<p>{{ page.content | striptags | split(pat=" ") | slice(end=20) | join(sep=" ") | safe }}{% if page.word_count > 20 %}…{% endif %}</p>
{% endif %}
</div>
{% endfor %}
</div>
</section>