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

View File

@ -10,8 +10,18 @@ title: arcanis' homepage
<header> <header>
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
<p class="view"><a href="/blog/">My blog</a><br> <label class="spoiler">
<a href="/projects/">My projects</a></p> <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> <p class="view"><a href="/about">About me</a></p>
</header> </header>

View File

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

View File

@ -19,7 +19,7 @@ back: 2
{% endfor %} {% endfor %}
<label class="spoiler"> <label class="spoiler">
<input type="checkbox" class="bo"/> <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"> <div class="body">
{% for post in site.categories.ru %} {% for post in site.categories.ru %}
{% assign new_month = post.date | date: "%B, %Y" %} {% assign new_month = post.date | date: "%B, %Y" %}
@ -28,7 +28,7 @@ back: 2
</label> </label>
<label class="spoiler"> <label class="spoiler">
<input type="checkbox" class="bo"/> <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"> <div class="body">
{% endif %} {% endif %}
{% assign month = post.date | date: "%B, %Y" %} {% assign month = post.date | date: "%B, %Y" %}

View File

@ -11,8 +11,18 @@ title: arcanis
<header> <header>
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
<p class="view"><a href="/ru/blog/">Блог</a><br> <label class="spoiler">
<a href="/ru/projects/">Проекты</a></p> <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> <p class="view"><a href="/ru/about">Обо мне</a></p>
</header> </header>