chages with ru pages

This commit is contained in:
arcan1s
2014-01-16 21:42:36 +04:00
parent 1c25bfbd40
commit 6db23cb986
20 changed files with 110 additions and 45 deletions

View File

@ -39,9 +39,13 @@
{% if page.share == true %}
{% include footer_sharethis.html %}
{% endif %}
<small>Hosted on GitHub Pages. <a href="/authors">Authors</a></small></p>
<p><a href="{{ page.url }}"><img src="/resources/en.png"></a>
<a href="/ru{{ page.url }}"><img src="/resources/ru.png"></a></p>
{% if page.category == "ru" %}
<small>Расположено на GitHub Pages. <a href="/ru/authors">Авторы</a></small></p>
<p><a href="{{ page.url | replace: '/ru/', '/' }}"><img src="/resources/en.png"></a></p>
{% else %}
<small>Hosted on GitHub Pages. <a href="/authors">Authors</a></small></p>
<p><a href="/ru{{ page.url }}"><img src="/resources/ru.png"></a></p>
{% endif %}
</footer>
</div>
<script src="/resources/js/scale.fix.js"></script>

View File

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

View File

@ -9,25 +9,44 @@ layout: default
<header>
<h1>{{ page.title }}</h1>
<p class="view">{{ page.description }}</p>
<p class="view"><a href="#info">General information</a><br>
<a href="#install">Installation guide</a><br>
<a href="#howto">How to use</a><br>
<a href="#config">Configuration</a><br>
{% if page.hasgui == true %}
<a href="#gui">GUI</a><br>
<a href="#screenshots">Screenshots</a><br>
{% endif %}
<a href="#links">Links</a></p>
{% if page.category == "ru" %}
<p class="view"><a href="#info">Общая информация</a><br>
<a href="#install">Установка</a><br>
<a href="#howto">Использование</a><br>
<a href="#config">Настройка</a><br>
{% if page.hasgui == true %}
<a href="#gui">Графический интерфейс</a><br>
<a href="#screenshots">Скриншоты</a><br>
{% endif %}
<a href="#links">Ссылки</a></p>
{% else %}
<p class="view"><a href="#info">General information</a><br>
<a href="#install">Installation guide</a><br>
<a href="#howto">How to use</a><br>
<a href="#config">Configuration</a><br>
{% if page.hasgui == true %}
<a href="#gui">GUI</a><br>
<a href="#screenshots">Screenshots</a><br>
{% endif %}
<a href="#links">Links</a></p>
{% endif %}
</header>
<section>
{{ content }}
<h2><a name="links" class="anchor" href="#links"><span class="octicon octicon-link"></span></a>Links</h2>
<ul>
<li><a href="https://github.com/arcan1s/{{ page.short }}">GitHub repo</a></li>
<li><a href="https://github.com/arcan1s/{{ page.short }}/releases">Latest release</a></li>
{% for link in page.links %}
{% if page.category == "ru" %}
<h2><a name="links" class="anchor" href="#links"><span class="octicon octicon-link"></span></a>Ссылки</h2>
<ul>
<li><a href="https://github.com/arcan1s/{{ page.short }}">Репозиторий на GitHub</a></li>
<li><a href="https://github.com/arcan1s/{{ page.short }}/releases">Последний релиз</a></li>
{% else %}
<h2><a name="links" class="anchor" href="#links"><span class="octicon octicon-link"></span></a>Links</h2>
<ul>
<li><a href="https://github.com/arcan1s/{{ page.short }}">GitHub repo</a></li>
<li><a href="https://github.com/arcan1s/{{ page.short }}/releases">Latest release</a></li>
{% endif %}
{% for link in page.links %}
<li>{{ link }}</li>
{% endfor %}
</ul>
{% endfor %}
</ul>