add 'recent updates' section
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<div class="link_tiles_grid">
|
||||
<a class="bouncy" href="{{ collections.post[-1].page.url }}">
|
||||
<a href="{{ collections.post[-1].page.url }}">
|
||||
<img src="_assets/img/most_recent.jpg" alt="Mitsuami from the Splatoon manga saying 'pyo'. The image links to the most recent post on the website."/>
|
||||
newest!
|
||||
</a>
|
||||
|
@ -56,6 +56,8 @@ h2 {
|
||||
h3 {
|
||||
font-size: 1.2rem;
|
||||
color: var(--header-text);
|
||||
margin-top: var(--line-padding);
|
||||
margin-bottom: var(--line-padding);
|
||||
}
|
||||
|
||||
/* Format links */
|
||||
@ -318,6 +320,17 @@ footer {
|
||||
}
|
||||
}
|
||||
|
||||
.updates-field {
|
||||
border: 2px solid var(--bg);
|
||||
padding: 5px;
|
||||
margin-top: var(--line-padding);
|
||||
margin-bottom: var(--line-padding);
|
||||
}
|
||||
|
||||
.updates-field p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* body > footer {
|
||||
margin-top: 4rem;
|
||||
padding: 2rem 1rem 1.5rem 1rem;
|
||||
|
@ -5,6 +5,15 @@ title: becoming one with the slime
|
||||
|
||||
hey what's up! my name is uuupah. im a twenty-something non-binary (they/them please!) software dev from australia plagued by a metaphysical urge to record my thoughts and feelings in meandering prose. i'm into exploring less mainstream music genres, character design and figure drawing, puzzle and movement videogames, old anime and rock climbing.
|
||||
|
||||
### recent updates
|
||||
|
||||
<div class="updates-field">
|
||||
{% set updateslist = collections.post | reverse | limit(5) %}
|
||||
{% for post in updateslist %}
|
||||
<p>{{ post.page.date.toLocaleDateString("en-UK") }} - [{{ post.data.title }}]({{post.filePathStem}}) [{{post.data.tags[0]}}]</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
### pages
|
||||
|
||||
{% include 'partials/link_tiles.njk' %}
|
||||
|
Reference in New Issue
Block a user