change to hiding posts by year since I do not write them often

This commit is contained in:
arcan1s 2014-06-23 01:07:32 +04:00
parent ba231bd284
commit 43860e4137
2 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ back: 2
<section>
{% for post in site.categories.en limit:1 %}
{% assign month = post.date | date: "%B, %Y" %}
{% assign month = post.date | date: "%Y" %}
{% endfor %}
<label class="spoiler">
<input type="checkbox" tabindex="-1">
@ -21,7 +21,7 @@ back: 2
<b>{{ month }}</b> <span class="close" style="float:right;">(hide)</span><span class="open" style="float:right;">(show)</span>
<blockquote>
{% for post in site.categories.en %}
{% assign new_month = post.date | date: "%B, %Y" %}
{% assign new_month = post.date | date: "%Y" %}
{% if new_month != month %}
</blockquote>
</div>
@ -32,7 +32,7 @@ back: 2
<b>{{ new_month }}</b> <span class="close" style="float:right;">(hide)</span><span class="open" style="float:right;">(show)</span>
<blockquote>
{% endif %}
{% assign month = post.date | date: "%B, %Y" %}
{% assign month = post.date | date: "%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 %}
</blockquote>

View File

@ -14,8 +14,8 @@ back: 2
<section>
{% for post in site.categories.ru limit:1 %}
{% assign month = post.date | date: "%B, %Y" %}
{% assign new_month = post.date | date: "%B, %Y" %}
{% assign month = post.date | date: "%Y" %}
{% assign new_month = post.date | date: "%Y" %}
{% endfor %}
<label class="spoiler">
<input type="checkbox" tabindex="-1">
@ -23,7 +23,7 @@ back: 2
<b>{% include longdate_to_ru.html %}</b> <span class="close" style="float:right;">(скрыть)</span><span class="open" style="float:right;">(показать)</span>
<blockquote>
{% for post in site.categories.ru %}
{% assign new_month = post.date | date: "%B, %Y" %}
{% assign new_month = post.date | date: "%Y" %}
{% if new_month != month %}
</blockquote>
</div>