change project structure to more pretty one

This commit is contained in:
2016-01-27 11:38:36 +03:00
parent 2ab2093829
commit c0ad1a6912
22 changed files with 90 additions and 242 deletions

View File

@ -15,8 +15,12 @@ hastr: true
<section>
{% for post in site.categories.ru limit:1 %}
{% assign month = post.date | date: "%Y" %}
{% assign new_month = post.date | date: "%Y" %}
{% if post.categories contains 'projects' %}
<!-- do nothing -->
{% else %}
{% assign month = post.date | date: "%Y" %}
{% assign new_month = post.date | date: "%Y" %}
{% endif %}
{% endfor %}
<label class="spoiler">
<input type="checkbox" tabindex="-1">
@ -25,8 +29,11 @@ hastr: true
<span class="close" style="float:right;">(скрыть)</span><span class="open" style="float:right;">(показать)</span>
<span class="spoilerbody">
{% for post in site.categories.ru %}
{% assign new_month = post.date | date: "%Y" %}
{% if new_month != month %}
{% if post.categories contains 'projects' %}
<!-- do nothing -->
{% else %}
{% assign new_month = post.date | date: "%Y" %}
{% if new_month != month %}
</span>
</span>
</label>
@ -37,11 +44,12 @@ hastr: true
<b>{% include longdate_to_ru.html %}</b>
<span class="close" style="float:right;">(скрыть)</span><span class="open" style="float:right;">(показать)</span>
<span class="spoilerbody">
{% endif %}
{% assign month = post.date | date: "%Y" %}
{% endif %}
{% assign month = post.date | date: "%Y" %}
<i>{% include shortdate_to_ru.html %}</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>
{% endif %}
{% endfor %}
</span>
</span>