Post lists with date below
This commit is contained in:
parent
2537faf77c
commit
a963c3896b
2 changed files with 36 additions and 12 deletions
25
posts.liquid
25
posts.liquid
|
@ -45,22 +45,23 @@ data:
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ol>
|
</ol>
|
||||||
<table>
|
|
||||||
{% for year in years -%}
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
<td><h2 id="{{year}}">{{year}}</h2></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
{% for year in years -%}
|
||||||
|
<h2 id="{{year}}">{{year}}</h2>
|
||||||
|
|
||||||
|
<ul class="posts-list">
|
||||||
{%- for post in collections.posts.pages %}
|
{%- for post in collections.posts.pages %}
|
||||||
{%- assign postyear = post.published_date | date: "%Y" %}
|
{%- assign postyear = post.published_date | date: "%Y" %}
|
||||||
{%- if postyear == year %}
|
{%- if postyear == year %}
|
||||||
<tr>
|
<li>
|
||||||
<td>{{ post.published_date | date: "%d. %b"}}</td>
|
<a href="/{{post.permalink }}">
|
||||||
<td><a href="/{{post.permalink }}">{{post.title}}</a></td>
|
<span>{{post.title}}</span>
|
||||||
</tr>
|
<span>
|
||||||
|
<time datetime="">{{ post.published_date | date: "%Y-%m-%d"}}</time>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
</ul>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</table>
|
|
||||||
|
|
23
style.css
23
style.css
|
@ -364,3 +364,26 @@ table, tr, td { border: none; }
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ol.archive-chart,
|
||||||
|
ul.posts-list {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
.posts-list li {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
.posts-list li a {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: calc(12rem / 18) 0px;
|
||||||
|
}
|
||||||
|
.posts-list li a:hover span:first-child {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
.posts-list span:first-child {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
||||||
|
.posts-list span:last-child {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue