fixed language page for very low-res devices, fixed blog by tag title

This commit is contained in:
Riccardo Spagni 2015-02-23 17:49:33 +02:00
parent eb584f2e5d
commit 477bd674fb
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
4 changed files with 39 additions and 25 deletions

View file

@ -6,6 +6,8 @@
<title>
{% if page.entry %}
{{ page.entry }} | {% t global.wiki %} | {% t index.page_title %}
{% elsif tag %}
{% t global.tags %}: {{ tag.name }} | {% t index.page_title %}
{% elsif page.title %}
{{ page.title }} | {% t index.page_title %}
{% else %}

View file

@ -1,30 +1,41 @@
---
layout: default
---
{% assign filename = page.path | remove: '.md' | split: '/' | last %}
{% for data_tag in site.data.tags %}
<!DOCTYPE html>
<html>
{% assign filename = page.path | remove: '.md' | split: '/' | last %}
{% for data_tag in site.data.tags %}
{% if data_tag.slug == filename %}
{% assign tag = data_tag %}
{% endif %}
{% endfor %}
{% endfor %}
<div class="page-title">
<!-- Icon is based on work by Sergiu Bagrin (http://pixelkit.com) and is licensed under Creative Commons BY 3.0 -->
<img src="//static.getmonero.org/images/icon_tags.svg" class="title-icon"><h2 class="inline">{% t tags.all %}: <span class="kicks">{{ tag.name }}</span></h2>
</div>
{% include head.html %}
<div>
{% if site.tags[tag.slug] %}
{% for post in site.tags[tag.slug] %}
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<blockquote>
{{ post.summary }}
</blockquote>
{% endfor %}
{% else %}
<h3>{% t tags.notags %}</h3>
{% endif %}
</div>
<body>
{% include header.html %}
<div class="container main-content">
<div class="page-title">
<!-- Icon is based on work by Sergiu Bagrin (http://pixelkit.com) and is licensed under Creative Commons BY 3.0 -->
<img src="//static.getmonero.org/images/icon_tags.svg" class="title-icon"><h2 class="inline">{% t tags.all %}: <span class="kicks">{{ tag.name }}</span></h2>
</div>
<div>
{% if site.tags[tag.slug] %}
{% for post in site.tags[tag.slug] %}
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<blockquote>
{{ post.summary }}
</blockquote>
{% endfor %}
{% else %}
<h3>{% t tags.notags %}</h3>
{% endif %}
</div>
</div>
{% include footer.html %}
</body>
</html>

View file

@ -5,6 +5,7 @@ global:
copyright: Copyright
monero_project: The Monero Project
wiki: Moneropedia
tags: Articles By Tag
terms: Terms
privacy: Privacy
copyright: Copyright

View file

@ -35,7 +35,7 @@ if (isset($_COOKIE["MONERO_LANG"]))
<body class="body-language">
<!-- Static navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="container" style="padding-bottom: 0px;">
<div class="navbar-header">
<a class="navbar-brand" href="/"><img class="logo" src="//static.getmonero.org/images/logo.svg"></a>
</div>