mirror of
https://github.com/monero-project/monero-site.git
synced 2024-11-16 15:58:16 +00:00
blog: fix language switching to english when selecting a category
This commit is contained in:
parent
e5acb61047
commit
d348ee0560
2 changed files with 21 additions and 21 deletions
|
@ -13,11 +13,11 @@ layout: custom
|
|||
<!-- Category selector: desktop -->
|
||||
<div class="container full desktop-only">
|
||||
<div class="info-block blog-nav row">
|
||||
<div class="col"><a href="{{ site.baseurl_root }}/blog/">{% t blog.allposts %}</a></div>
|
||||
<div class="col {% if filename == 'urgent' %}checked{% endif %}"><a href="{{ site.baseurl_root }}/blog/tags/urgent.html">{% t blog.urgent %}</a></div>
|
||||
<div class="col {% if filename == 'releases' %}checked{% endif %}"><a href="{{ site.baseurl_root }}/blog/tags/releases.html">{% t blog.releases %}</a></div>
|
||||
<div class="col {% if filename == 'community' %}checked{% endif %}"><a href="{{ site.baseurl_root }}/blog/tags/community.html">{% t blog.community %}</a></div>
|
||||
<div class="col {% if filename == 'dev diaries' %}checked{% endif %}"><a href="{{ site.baseurl_root }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></div>
|
||||
<div class="col"><a href="{{ site.baseurl }}/blog/">{% t blog.allposts %}</a></div>
|
||||
<div class="col {% if filename == 'urgent' %}checked{% endif %}"><a href="{{ site.baseurl }}/blog/tags/urgent.html">{% t blog.urgent %}</a></div>
|
||||
<div class="col {% if filename == 'releases' %}checked{% endif %}"><a href="{{ site.baseurl }}/blog/tags/releases.html">{% t blog.releases %}</a></div>
|
||||
<div class="col {% if filename == 'community' %}checked{% endif %}"><a href="{{ site.baseurl }}/blog/tags/community.html">{% t blog.community %}</a></div>
|
||||
<div class="col {% if filename == 'dev diaries' %}checked{% endif %}"><a href="{{ site.baseurl }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End category selector: desktop -->
|
||||
|
@ -28,11 +28,11 @@ layout: custom
|
|||
<input id="filter" type="checkbox" name="category-filter"/>
|
||||
<label for="filter">{% t blog.filter %}</label>
|
||||
<ul id="menu">
|
||||
<li><a href="{{ site.baseurl_root }}/blog/">{% t blog.allposts %}</a></li>
|
||||
<li><a href="{{ site.baseurl_root }}/blog/tags/urgent.html">{% t blog.urgent %}</a></li>
|
||||
<li><a href="{{ site.baseurl_root }}/blog/tags/releases.html">{% t blog.releases %}</a></li>
|
||||
<li><a href="{{ site.baseurl_root }}/blog/tags/community.html">{% t blog.community %}</a></li>
|
||||
<li><a href="{{ site.baseurl_root }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></li>
|
||||
<li><a href="{{ site.baseurl }}/blog/">{% t blog.allposts %}</a></li>
|
||||
<li><a href="{{ site.baseurl }}/blog/tags/urgent.html">{% t blog.urgent %}</a></li>
|
||||
<li><a href="{{ site.baseurl }}/blog/tags/releases.html">{% t blog.releases %}</a></li>
|
||||
<li><a href="{{ site.baseurl }}/blog/tags/community.html">{% t blog.community %}</a></li>
|
||||
<li><a href="{{ site.baseurl }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,11 +7,11 @@ title: titles.blogbytag
|
|||
<!-- Category selector: desktop -->
|
||||
<div class="container full">
|
||||
<div class="info-block blog-nav row">
|
||||
<div class="col {% if page.name == 'index.html' %}checked{% endif %}"><a href="{{ site.baseurl_root }}/blog/">{% t blog.allposts %}</a></div>
|
||||
<div class="col"><a href="{{ site.baseurl_root }}/blog/tags/urgent.html">{% t blog.urgent %}</a></div>
|
||||
<div class="col"><a href="{{ site.baseurl_root }}/blog/tags/releases.html">{% t blog.releases %}</a></div>
|
||||
<div class="col"><a href="{{ site.baseurl_root }}/blog/tags/community.html">{% t blog.community %}</a></div>
|
||||
<div class="col"><a href="{{ site.baseurl_root }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></div>
|
||||
<div class="col {% if page.name == 'index.html' %}checked{% endif %}"><a href="{{ site.baseurl }}/blog/">{% t blog.allposts %}</a></div>
|
||||
<div class="col"><a href="{{ site.baseurl }}/blog/tags/urgent.html">{% t blog.urgent %}</a></div>
|
||||
<div class="col"><a href="{{ site.baseurl }}/blog/tags/releases.html">{% t blog.releases %}</a></div>
|
||||
<div class="col"><a href="{{ site.baseurl }}/blog/tags/community.html">{% t blog.community %}</a></div>
|
||||
<div class="col"><a href="{{ site.baseurl }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End category selector: desktop -->
|
||||
|
@ -22,11 +22,11 @@ title: titles.blogbytag
|
|||
<input id="filter" type="checkbox" name="category-filter"/>
|
||||
<label for="filter">{% t blog.filter %}</label>
|
||||
<ul id="menu">
|
||||
<li><a href="{{ site.baseurl_root }}/blog/">{% t blog.allposts %}</a></li>
|
||||
<li><a href="{{ site.baseurl_root }}/blog/tags/urgent.html">{% t blog.urgent %}</a></li>
|
||||
<li><a href="{{ site.baseurl_root }}/blog/tags/releases.html">{% t blog.releases %}</a></li>
|
||||
<li><a href="{{ site.baseurl_root }}/blog/tags/community.html">{% t blog.community %}</a></li>
|
||||
<li><a href="{{ site.baseurl_root }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></li>
|
||||
<li><a href="{{ site.baseurl }}/blog/">{% t blog.allposts %}</a></li>
|
||||
<li><a href="{{ site.baseurl }}/blog/tags/urgent.html">{% t blog.urgent %}</a></li>
|
||||
<li><a href="{{ site.baseurl }}/blog/tags/releases.html">{% t blog.releases %}</a></li>
|
||||
<li><a href="{{ site.baseurl }}/blog/tags/community.html">{% t blog.community %}</a></li>
|
||||
<li><a href="{{ site.baseurl }}/blog/tags/dev%20diaries.html">{% t blog.meetinglogs %}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -78,7 +78,7 @@ title: titles.blogbytag
|
|||
{% if page == paginator.page %}
|
||||
<em>{{ page }}</em>
|
||||
{% elsif page == 1 %}
|
||||
<a href="{{ site.baseurl_root }}/blog">{{ page }}</a>
|
||||
<a href="{{ site.baseurl }}/blog">{{ page }}</a>
|
||||
{% else %}
|
||||
<a href="{{ site.paginate_path | prepend: '/' | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue