Added spoilers to archive pages

This commit is contained in:
arcan1s
2014-01-17 21:43:53 +04:00
parent 24b60d14b6
commit a9de241ab4
6 changed files with 77 additions and 6 deletions

View File

@ -12,8 +12,27 @@ back: 2
</header>
<section>
{% for post in site.categories.en %}
<p align="justify"><i>{{ post.date | date_to_string}}</i> &raquo; <a name="{{ post.short }}" class="anchor" href="#{{ post.short }}"><span class="octicon octicon-link"></span></a><a href="{{ post.url }}">{{ post.title }}</a> ({{ post.tags }})</p>
{% for post in site.categories.en limit:1 %}
{% assign month = post.date | date: "%B, %Y" %}
{% endfor %}
<label class="spoiler">
<input type="checkbox" class="bo"/>
<div class="title">{{ month }}</div>
<div class="body">
{% for post in site.categories.en %}
{% assign new_month = post.date | date: "%B, %Y" %}
{% if new_month != month %}
</div>
</label>
<label class="spoiler">
<input type="checkbox" class="bo"/>
<div class="title">{{ new_month }}</div>
<div class="body">
{% endif %}
{% assign month = post.date | date: "%B, %Y" %}
<i>{{ post.date | date_to_string }}</i> &raquo; <a name="{{ post.short }}" class="anchor" href="#{{ post.short }}"><span class="octicon octicon-link"></span></a><a href="{{ post.url }}">{{ post.title }}</a> ({{ post.tags }})<br>
{% endfor %}
</div>
</label>
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-US.js"></script>

View File

@ -15,7 +15,7 @@ back: 1
{% for post in site.categories.en limit:10 %}
<h1><a name="{{ post.short }}" class="anchor" href="#{{ post.short }}"><span class="octicon octicon-link"></span></a><a href="{{ post.url }}">{{ post.title }}</a></h1>
<p align="justify"><i>{{ post.date | date_to_string}}</i></p>
<p align="justify"><i>{{ post.date | date_to_string }}</i></p>
<p align="justify">{{ post.description }}</p>
<p align="justify"><b>Tags</b>: {{ post.tags }}</p>
{% endfor %}