prettify blog post listing page a bit

This commit is contained in:
Rachel Lambda Samuelsson 2022-01-27 20:36:06 +01:00
parent 890cc7f928
commit 27402ebcdb
2 changed files with 13 additions and 2 deletions

View File

@ -116,6 +116,16 @@ a:hover {
color: $text-emph; color: $text-emph;
} }
.right {
text-align: right;
float: right;
}
.post_listing {
margin-top: 40px;
margin-bottom: 40px;
}
nav ul { nav ul {
list-style: none; list-style: none;
padding: 0; padding: 0;

View File

@ -4,8 +4,9 @@ title: "blog"
--- ---
<ul> <ul>
{% for post in site.posts %} {% for post in site.posts %}
<li> <li class="post_listing">
<a class="bit_bigger" href="{{ post.url }}">{{ post.title }} - {{ post.date | date_to_long_string }}</a> <a class="bit_bigger" href="{{ post.url }}">{{ post.title }}</a>
<span class=right>{{ post.date | date_to_long_string }}</span>
<hr> <hr>
<p>{{ post.excerpt }}</p> <p>{{ post.excerpt }}</p>
</li> </li>