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

parent eb584f2e
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
<title> <title>
{% if page.entry %} {% if page.entry %}
{{ page.entry }} | {% t global.wiki %} | {% t index.page_title %} {{ page.entry }} | {% t global.wiki %} | {% t index.page_title %}
{% elsif tag %}
{% t global.tags %}: {{ tag.name }} | {% t index.page_title %}
{% elsif page.title %} {% elsif page.title %}
{{ page.title }} | {% t index.page_title %} {{ page.title }} | {% t index.page_title %}
{% else %} {% else %}
......
--- <!DOCTYPE html>
layout: default <html>
--- {% assign filename = page.path | remove: '.md' | split: '/' | last %}
{% for data_tag in site.data.tags %}
{% assign filename = page.path | remove: '.md' | split: '/' | last %}
{% for data_tag in site.data.tags %}
{% if data_tag.slug == filename %} {% if data_tag.slug == filename %}
{% assign tag = data_tag %} {% assign tag = data_tag %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<div class="page-title"> {% include head.html %}
<!-- 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> <body>
</div>
{% include header.html %}
<div>
{% if site.tags[tag.slug] %} <div class="container main-content">
{% for post in site.tags[tag.slug] %}
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3> <div class="page-title">
<blockquote> <!-- Icon is based on work by Sergiu Bagrin (http://pixelkit.com) and is licensed under Creative Commons BY 3.0 -->
{{ post.summary }} <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>
</blockquote> </div>
{% endfor %}
{% else %} <div>
<h3>{% t tags.notags %}</h3> {% if site.tags[tag.slug] %}
{% endif %} {% for post in site.tags[tag.slug] %}
</div> <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>
...@@ -5,6 +5,7 @@ global: ...@@ -5,6 +5,7 @@ global:
copyright: Copyright copyright: Copyright
monero_project: The Monero Project monero_project: The Monero Project
wiki: Moneropedia wiki: Moneropedia
tags: Articles By Tag
terms: Terms terms: Terms
privacy: Privacy privacy: Privacy
copyright: Copyright copyright: Copyright
......
...@@ -35,7 +35,7 @@ if (isset($_COOKIE["MONERO_LANG"])) ...@@ -35,7 +35,7 @@ if (isset($_COOKIE["MONERO_LANG"]))
<body class="body-language"> <body class="body-language">
<!-- Static navbar --> <!-- Static navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container"> <div class="container" style="padding-bottom: 0px;">
<div class="navbar-header"> <div class="navbar-header">
<a class="navbar-brand" href="/"><img class="logo" src="//static.getmonero.org/images/logo.svg"></a> <a class="navbar-brand" href="/"><img class="logo" src="//static.getmonero.org/images/logo.svg"></a>
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment