edited main pages

This commit is contained in:
arcan1s
2014-07-29 21:59:57 +04:00
parent 321c29cbcf
commit ab6d670842
4 changed files with 89 additions and 79 deletions

View File

@ -13,29 +13,33 @@ hasTr: true
</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">
<div class="box">
<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: "%Y" %}
{% if new_month != month %}
</blockquote>
</div>
</label>
<label class="spoiler">
<input type="checkbox" tabindex="-1">
<div class="box">
<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: "%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>
</div>
</label>
{% for post in site.categories.en limit:1 %}
{% assign month = post.date | date: "%Y" %}
{% endfor %}
<label class="spoiler">
<input type="checkbox" tabindex="-1">
<div class="box">
<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: "%Y" %}
{% if new_month != month %}
</blockquote>
</div>
</label>
<label class="spoiler">
<input type="checkbox" tabindex="-1">
<div class="box">
<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: "%Y" %}
<i>{{ post.date | date_to_string }}</i> &raquo;
<a href="#{{ post.short }}" class="anchor" name="{{ post.short }}"><span class="octicon octicon-link"></span></a>
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> ({{ post.tags }})<br>
{% endfor %}
</blockquote>
</div>
</label>

View File

@ -10,13 +10,19 @@ hasTr: true
<div class="wrapper">
<header>
<h1>{{ page.title }}</h1>
<h3><a name="archive" class="anchor" href="#archive"><span class="octicon octicon-link"></span></a><a href="/blog/archive">Archive</a></h3>
<h3>
<a href="#archive" class="anchor" name="archive"><span class="octicon octicon-link"></span></a>
<a href="/blog/archive" title="Archive">Archive</a>
</h3>
</header>
<section>
{% 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><i>{{ post.date | date_to_string }}</i></p>
<p>{{ post.description }}</p>
<p><b>Tags</b>: {{ post.tags }}</p>
{% endfor %}
{% for post in site.categories.en limit:10 %}
<h1>
<a href="#{{ post.short }}" class="anchor" name="{{ post.short }}"><span class="octicon octicon-link"></span></a>
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
</h1>
<p><i>{{ post.date | date_to_string }}</i></p>
<p>{{ post.description }}</p>
<p><b>Tags</b>: {{ post.tags }}</p>
{% endfor %}