arcanis.me/blog/archive.html

46 lines
1.3 KiB
HTML

---
layout: default
title: Archive
comment: false
share: false
back: 2
hastr: true
---
<body>
<div class="wrapper">
<header>
<h1>{{ page.title }}</h1>
</header>
<section>
{% for post in site.categories.en limit:1 %}
{% assign month = post.date | date: "%Y" %}
{% endfor %}
<label class="spoiler">
<input type="checkbox" tabindex="-1">
<span class="box">
<b>{{ month }}</b>
<span class="close" style="float:right;">(hide)</span><span class="open" style="float:right;">(show)</span>
<p class="spoilerbody">
{% for post in site.categories.en %}
{% assign new_month = post.date | date: "%Y" %}
{% if new_month != month %}
</p>
</span>
</label>
<label class="spoiler">
<input type="checkbox" tabindex="-1">
<span class="box">
<b>{{ new_month }}</b>
<span class="close" style="float:right;">(hide)</span><span class="open" style="float:right;">(show)</span>
<p class="spoilerbody">
{% endif %}
{% assign month = post.date | date: "%Y" %}
<i>{{ post.date | date_to_string }}</i> &raquo;
<a href="#{{ post.short }}" class="anchor" id="{{ post.short }}"><span class="octicon octicon-link"></span></a>
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> ({{ post.tags }})<br>
{% endfor %}
</p>
</span>
</label>