diff --git a/_includes/longdate_to_ru.html b/_includes/longdate_to_ru.html new file mode 100644 index 0000000..d08e906 --- /dev/null +++ b/_includes/longdate_to_ru.html @@ -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', 'Декабрь' }} diff --git a/_includes/shortdate_to_ru.html b/_includes/shortdate_to_ru.html new file mode 100644 index 0000000..7485ac4 --- /dev/null +++ b/_includes/shortdate_to_ru.html @@ -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', 'дек' }} diff --git a/_layouts/paper.html b/_layouts/paper.html index 9cd4652..f5bbc6c 100644 --- a/_layouts/paper.html +++ b/_layouts/paper.html @@ -9,24 +9,23 @@ layout: default

{{ page.title }}

{% if page.category == "ru" %} -

{{ page.date | date_to_string }}
- Последнее редактирование: {{ page.last | date_to_string }}

+ {% assign post = page %} +

{% include shortdate_to_ru.html %}

Тэги: {{ page.tags }}

Похожие посты:
{% for post in site.related_posts limit:3 %} {% if post.category == "ru" %} - {{ page.last | date_to_string }} {{ post.title }}
+ {% include shortdate_to_ru.html %} {{ post.title }}
{% endif %} {% endfor %}

{% else %} -

{{ page.date | date_to_string }}
- Last edit: {{ page.last | date_to_string }}

+

{{ page.date | date_to_string }}

Tags: {{ page.tags }}

Related posts:
{% for post in site.related_posts limit:3 %} {% if post.category != "ru" %} - {{ page.last | date_to_string }} {{ post.title }}
+ {{ post.date | date_to_string }} {{ post.title }}
{% endif %} {% endfor %}

diff --git a/_posts/2014-01-14-about-zshrc.html b/_posts/2014-01-14-about-zshrc.html index 5aba528..4e3a273 100644 --- a/_posts/2014-01-14-about-zshrc.html +++ b/_posts/2014-01-14-about-zshrc.html @@ -2,7 +2,6 @@ category: en type: paper layout: paper -last: 14 January 2014 tags: zshrc, configuration, linux title: About zshrc short: about-zshrc diff --git a/resources/css/syntax.css b/resources/css/syntax.css index 2774b76..c6a6452 100644 --- a/resources/css/syntax.css +++ b/resources/css/syntax.css @@ -17,10 +17,11 @@ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .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 .kc { font-weight: bold } /* Keyword.Constant */ .highlight .kd { font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { font-weight: bold } /* Keyword.Namespace */ .highlight .kp { font-weight: bold } /* Keyword.Pseudo */ .highlight .kr { font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ @@ -58,3 +59,11 @@ .highlight .vg { color: #008080 } /* Name.Variable.Global */ .highlight .vi { color: #008080 } /* Name.Variable.Instance */ .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 } diff --git a/ru/_posts/2014-01-14-about-zshrc.html b/ru/_posts/2014-01-14-about-zshrc.html index 05aca8f..d878337 100644 --- a/ru/_posts/2014-01-14-about-zshrc.html +++ b/ru/_posts/2014-01-14-about-zshrc.html @@ -2,7 +2,6 @@ category: ru type: paper layout: paper -last: 14 January 2014 tags: zshrc, настройка, linux title: О zshrc short: about-zshrc diff --git a/ru/blog/archive.html b/ru/blog/archive.html index 6588aaa..436cc45 100644 --- a/ru/blog/archive.html +++ b/ru/blog/archive.html @@ -15,10 +15,11 @@ back: 2 {% for post in site.categories.ru limit:1 %} {% assign month = post.date | date: "%B, %Y" %} + {% assign new_month = post.date | date: "%B, %Y" %} {% endfor %}