5
0
mirror of https://github.com/cwinfo/yggdrasil-network.github.io.git synced 2024-09-19 16:09:36 +00:00

Update blog listing

This commit is contained in:
Neil Alexander 2018-07-13 12:50:27 +01:00
parent 46aa7a787b
commit 187ee5840d
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
2 changed files with 27 additions and 9 deletions

View File

@ -31,3 +31,17 @@ pre.highlight {
white-space: -o-pre-wrap;
word-wrap: break-word;
}
div.blogpost {
display: grid;
grid-gap: 10px;
grid-template-columns: 100px minmax(200px, 1fr);
}
div.blogpost div.day {
font-size: 2em;
}
div.blogpost div.month {
font-size: 0.5em;
}

16
blog.md
View File

@ -1,9 +1,13 @@
# Blog
<ul>
{% for post in site.posts %}
<li>
{% for post in site.posts %}
<div class='blogpost'>
<div id='date'>
<div id='day'>{{ page.date | date: "%-d" }}</div>
<div id='month'>{{ page.date | date: "%B %Y" }}</div>
</div>
<div id='overview'>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
{% endfor %}