5
0
mirror of https://github.com/cwinfo/yggdrasil-network.github.io.git synced 2024-09-19 14:59:37 +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

@ -25,9 +25,23 @@ div.wrapper {
pre.highlight { pre.highlight {
width: auto; width: auto;
white-space: pre-wrap; white-space: pre-wrap;
white-space: -moz-pre-wrap; white-space: -moz-pre-wrap;
white-space: -pre-wrap; white-space: -pre-wrap;
white-space: -o-pre-wrap; white-space: -o-pre-wrap;
word-wrap: break-word; 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 # Blog
<ul> {% for post in site.posts %}
{% for post in site.posts %} <div class='blogpost'>
<li> <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> <a href="{{ post.url }}">{{ post.title }}</a>
</li> </div>
{% endfor %} </div>
</ul> {% endfor %}