edited spolers

This commit is contained in:
arcan1s 2014-01-21 00:49:34 +04:00
parent 44c4c5e66e
commit d90f9aa55e
5 changed files with 31 additions and 11 deletions

View File

@ -17,7 +17,7 @@ back: 2
{% endfor %}
<label class="spoiler">
<input type="checkbox" class="bo"/>
<div class="title">{{ month }}</div>
<div class="title">{{ month }} (show)</div>
<div class="body">
{% for post in site.categories.en %}
{% assign new_month = post.date | date: "%B, %Y" %}
@ -26,7 +26,7 @@ back: 2
</label>
<label class="spoiler">
<input type="checkbox" class="bo"/>
<div class="title">{{ new_month }}</div>
<div class="title">{{ new_month }} (show)</div>
<div class="body">
{% endif %}
{% assign month = post.date | date: "%B, %Y" %}

View File

@ -10,8 +10,18 @@ title: arcanis' homepage
<header>
<h1>{{ page.title }}</h1>
<p class="view"><a href="/blog/">My blog</a><br>
<a href="/projects/">My projects</a></p>
<label class="spoiler">
<input type="checkbox" class="bo"/>
<div class="title"><a href="/blog/">Latest posts:</a></div>
<div class="body">
<p>
{% for post in site.categories.en limit:3 %}
<a href="{{ post.url }}">{{ post.title }}</a><br>
{% endfor %}
</p>
</div>
</label>
<p class="view"><a href="/projects/">My projects</a></p>
<p class="view"><a href="/about">About me</a></p>
</header>

View File

@ -1,12 +1,12 @@
/* spoiler */
.spoiler {
display: block;
background: #dcdcdc;
text-decoration: none;
color: #555555;
border: 1px solid #000000;
border-radius: 5px;
padding: 0 5px 0 5px;
margin: 0 0 5px 0;
padding: 0 0 0 0;
margin: 0 0 0 0;
}
.spoiler > .title {
font-weight: bold;

View File

@ -19,7 +19,7 @@ back: 2
{% endfor %}
<label class="spoiler">
<input type="checkbox" class="bo"/>
<div class="title">{% include longdate_to_ru.html %}</div>
<div class="title">{% include longdate_to_ru.html %} (показать)</div>
<div class="body">
{% for post in site.categories.ru %}
{% assign new_month = post.date | date: "%B, %Y" %}
@ -28,7 +28,7 @@ back: 2
</label>
<label class="spoiler">
<input type="checkbox" class="bo"/>
<div class="title">{% include longdate_to_ru.html %}</div>
<div class="title">{% include longdate_to_ru.html %} (показать)</div>
<div class="body">
{% endif %}
{% assign month = post.date | date: "%B, %Y" %}

View File

@ -11,8 +11,18 @@ title: arcanis
<header>
<h1>{{ page.title }}</h1>
<p class="view"><a href="/ru/blog/">Блог</a><br>
<a href="/ru/projects/">Проекты</a></p>
<label class="spoiler">
<input type="checkbox" class="bo"/>
<div class="title"><a href="/ru/blog/">Блог</a></div>
<div class="body">
<p>
{% for post in site.categories.ru limit:3 %}
<a href="{{ post.url }}">{{ post.title }}</a><br>
{% endfor %}
</p>
</div>
</label>
<p class="view"><a href="/ru/projects/">Проекты</a></p>
<p class="view"><a href="/ru/about">Обо мне</a></p>
</header>