diff --git a/_includes/head.html b/_includes/head.html index 9fab872cadb502505557958842d120f86295db80..11460e88501959ac3256b3226ebcf255db9f3e45 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -6,6 +6,8 @@ {% 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 %} diff --git a/_layouts/blog_by_tag.html b/_layouts/blog_by_tag.html index 45e13297c95728b8f74615bac5b55e142f67ca96..6e46df88d042f8dae205b9c0761d6ff1d5f76618 100644 --- a/_layouts/blog_by_tag.html +++ b/_layouts/blog_by_tag.html @@ -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 %} - -<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> + {% endfor %} + + {% include head.html %} + + <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> diff --git a/_strings_en.yml b/_strings_en.yml index 5a6fdb5f59ded290fa038983f3d058e01d3224c9..3321bd2606300264974e4fc56ff6890dc1f2b444 100644 --- a/_strings_en.yml +++ b/_strings_en.yml @@ -5,6 +5,7 @@ global: copyright: Copyright monero_project: The Monero Project wiki: Moneropedia + tags: Articles By Tag terms: Terms privacy: Privacy copyright: Copyright diff --git a/language.php b/language.php index ce319454410ed0961abb452d20d936cb0ac61afb..846224bd3eff12817e4d9ce0ee7ce6e5f9607516 100644 --- a/language.php +++ b/language.php @@ -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>