2014-01-18

* edited css (highlighting)
* edited date in russian pages
This commit is contained in:
arcan1s 2014-01-18 14:51:17 +04:00
parent 06b0518bb6
commit 5dc73b8d9f
8 changed files with 22 additions and 13 deletions

View File

@ -0,0 +1 @@
{{ new_month | replace: 'January', 'Январь' | replace: 'February', 'Февраль' | replace: 'March', 'Март' | replace: 'April', 'Апрель' | replace: 'May', 'Май' | replace: 'June', 'Июнь' | replace: 'July', 'Июль' | replace: 'August', 'Август' | replace: 'September', 'Сентябрь' | replace: 'October', 'Октябрь' | replace: 'November', 'Ноябрь' | replace: 'December', 'Декабрь' }}

View File

@ -0,0 +1 @@
{{ post.date | date_to_string | replace: 'Jan', 'янв' | replace: 'Feb', 'фев' | replace: 'Mar', 'мар' | replace: 'Apr', 'апр' | replace: 'May', 'май' | replace: 'Jun', 'июн' | replace: 'Jul', 'июл' | replace: 'Aug', 'авг' | replace: 'Sep', 'сен' | replace: 'Oct', 'окт' | replace: 'Nov', 'ноя' | replace: 'Dec', 'дек' }}

View File

@ -9,24 +9,23 @@ layout: default
<header> <header>
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
{% if page.category == "ru" %} {% if page.category == "ru" %}
<p align="justify">{{ page.date | date_to_string }}<br> {% assign post = page %}
<i>Последнее редактирование: {{ page.last | date_to_string }}</i></p> <p align="justify">{% include shortdate_to_ru.html %}</p>
<p align="justify"><b>Тэги</b>: {{ page.tags }}</p> <p align="justify"><b>Тэги</b>: {{ page.tags }}</p>
<p align="justify"><b>Похожие посты</b>:<br> <p align="justify"><b>Похожие посты</b>:<br>
{% for post in site.related_posts limit:3 %} {% for post in site.related_posts limit:3 %}
{% if post.category == "ru" %} {% if post.category == "ru" %}
<i>{{ page.last | date_to_string }}</i> <a href="{{ post.url }}">{{ post.title }}</a><br> <i>{% include shortdate_to_ru.html %}</i> <a href="{{ post.url }}">{{ post.title }}</a><br>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</p> </p>
{% else %} {% else %}
<p align="justify">{{ page.date | date_to_string }}<br> <p align="justify">{{ page.date | date_to_string }}<br></p>
<i>Last edit: {{ page.last | date_to_string }}</i></p>
<p align="justify"><b>Tags</b>: {{ page.tags }}</p> <p align="justify"><b>Tags</b>: {{ page.tags }}</p>
<p align="justify"><b>Related posts</b>:<br> <p align="justify"><b>Related posts</b>:<br>
{% for post in site.related_posts limit:3 %} {% for post in site.related_posts limit:3 %}
{% if post.category != "ru" %} {% if post.category != "ru" %}
<i>{{ page.last | date_to_string }}</i> <a href="{{ post.url }}">{{ post.title }}</a><br> <i>{{ post.date | date_to_string }}</i> <a href="{{ post.url }}">{{ post.title }}</a><br>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</p> </p>

View File

@ -2,7 +2,6 @@
category: en category: en
type: paper type: paper
layout: paper layout: paper
last: 14 January 2014
tags: zshrc, configuration, linux tags: zshrc, configuration, linux
title: About zshrc title: About zshrc
short: about-zshrc short: about-zshrc

View File

@ -17,10 +17,11 @@
.highlight .go { color: #888888 } /* Generic.Output */ .highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */ .highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */ .highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */ .highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kn { font-weight: bold } /* Keyword.Namespace */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */ .highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */ .highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
@ -58,3 +59,11 @@
.highlight .vg { color: #008080 } /* Name.Variable.Global */ .highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */ .highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
.type-csharp .highlight .k { color: #0000FF }
.type-csharp .highlight .kt { color: #0000FF }
.type-csharp .highlight .nf { color: #000000; font-weight: normal }
.type-csharp .highlight .nc { color: #2B91AF }
.type-csharp .highlight .nn { color: #000000 }
.type-csharp .highlight .s { color: #A31515 }
.type-csharp .highlight .sc { color: #A31515 }

View File

@ -2,7 +2,6 @@
category: ru category: ru
type: paper type: paper
layout: paper layout: paper
last: 14 January 2014
tags: zshrc, настройка, linux tags: zshrc, настройка, linux
title: О zshrc title: О zshrc
short: about-zshrc short: about-zshrc

View File

@ -15,10 +15,11 @@ back: 2
{% for post in site.categories.ru limit:1 %} {% for post in site.categories.ru limit:1 %}
{% assign month = post.date | date: "%B, %Y" %} {% assign month = post.date | date: "%B, %Y" %}
{% assign new_month = post.date | date: "%B, %Y" %}
{% 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">{% 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" %}
@ -27,11 +28,11 @@ 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">{% 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" %}
<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> <i>{% include shortdate_to_ru.html %}</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 %} {% endfor %}
</div> </div>
</label> </label>

View File

@ -16,7 +16,7 @@ back: 1
{% for post in site.categories.ru limit:10 %} {% for post in site.categories.ru 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> <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 align="justify"><i>{{ post.date | date_to_string }}</i></p> <p align="justify"><i>{% include shortdate_to_ru.html %}</i></p>
<p align="justify">{{ post.description }}</p> <p align="justify">{{ post.description }}</p>
<p align="justify"><b>Тэги</b>: {{ post.tags }}</p> <p align="justify"><b>Тэги</b>: {{ post.tags }}</p>
{% endfor %} {% endfor %}