blog index and blog-by-tag formatting

parent 2bf3c411
<!-- Static navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-wrapper">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
......@@ -17,9 +17,8 @@
<a href="#" class="dropdown-toggle purple" data-toggle="dropdown">{% t menu.blog %} <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="/blog">{% t menu.allblog %}</a></li>
<li><a href="/blog/missives">{% t menu.missives %}</a></li>
<li><a href="/blog/devdiaries">{% t menu.devdiaries %}</a></li>
<li><a href="/blog/uncategorised">{% t menu.uncategorised %}</a></li>
<li><a href="/blog/tags/monero%20missives">{% t menu.missives %}</a></li>
<li><a href="/blog/tags/dev%20diaries">{% t menu.devdiaries %}</a></li>
</ul>
</li>
<li class="dropdown">
......@@ -44,12 +43,13 @@
<li><a href="/knowledge-base/user-guides">{% t menu.userguides %}</a></li>
<li><a href="/knowledge-base/developer-guides">{% t menu.developerguides %}</a></li>
<li class="divider"></li>
<li><a href="/research-lab">{% t menu.lab %}</a></li>
<li><a href="/knowledge-base/openalias">{% t menu.openalias %}</a></li>
<li><a href="/knowledge-base/projects">{% t menu.projects %}</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle softyellow" data-toggle="dropdown">{% t menu.community %} <span class="caret"></span></a>
<a href="#" class="dropdown-toggle softyellow last" data-toggle="dropdown">{% t menu.community %} <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="https://forum.monero.cc">{% t menu.forum %}</a></li>
<li><a href="https://www.reddit.com/r/monero/">{% t menu.reddit %}</a></li>
......
......@@ -10,7 +10,11 @@ layout: default
{% endif %}
{% endfor %}
<h1>{% t tags.all %}: <span class="kicks">{{ tag.name }}</span></h1>
<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.monero.cc/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] %}
......@@ -20,7 +24,7 @@ layout: default
</blockquote>
{% endfor %}
{% else %}
<h3>There are no posts for this tag.</h3>
<h3>{% t tags.notags %}</h3>
{% endif %}
</div>
......@@ -6,13 +6,17 @@
<body>
{% include header.html %}
<div id="wrap">
<div class="container main-content">
{{ content }}
</div>
{% include header.html %}
<div class="container main-content">
{{ content }}
</div>
{% include footer.html %}
{% include footer.html %}
</div>
</body>
......
......@@ -18,14 +18,15 @@ menu:
choose: How to Choose a Monero Client
running: How to Run a Monero Node
downloads: All Monero Downloads
accepting: How to Accept Monero Payments
merchants: Monero Merchant Directory
accepting: Accepting Monero Payments
about: About Monero
people: The People Behind Monero
wiki: Moneropedia
userguides: User Guides
developerguides: Developer Guides
openalias: The OpenAlias Project
lab: Monero Research Lab
alternative: Alternative Clients
projects: External Projects
irc: IRC on Freenode
......@@ -89,3 +90,4 @@ blog:
tagged: Tagged under
tags:
all: Articles by Tag
notags: There are no posts for this tag.
\ No newline at end of file
......@@ -3,7 +3,10 @@ layout: default
title: All Blog Posts
---
<h2>{% t blog.title_1 %} <span class="purple-kicks">{% t blog.title_2 %}</span> {% t blog.title_3 %}</h2>
<div class="page-title">
<!-- Icon is based on work by Freepik (http://www.freepik.com) and is licensed under Creative Commons BY 3.0 -->
<img src="//static.monero.cc/images/icon_blog.svg" class="title-icon"><h2 class="inline">{% t blog.title_1 %} <span class="purple-kicks">{% t blog.title_2 %}</span> {% t blog.title_3 %}</h2>
</div>
{% for post in paginator.posts %}
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
......@@ -11,12 +14,13 @@ title: All Blog Posts
{{ post.summary }}
<small>{% t blog.tagged %}:
{% for tag in post.tags %}
[{{ tag }}]
[<a href="/blog/tags/{{ tag }}">{{ tag }}]</a>
{% endfor %}
</small>
</blockquote>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="text-center">
{% if paginator.previous_page %}
......
......@@ -21,7 +21,7 @@ Title: Home
<ul>
{% for post in site.posts limit:3 %}
<li>
<a href="post.url">[{{ post.date | date: "%B %d" }} - <span class="news-title">{{ post.title }}</span>]</a><br>
<a href="{{ post.url }}">[{{ post.date | date: "%B %d" }} - <span class="news-title">{{ post.title }}</span>]</a><br>
{{ post.summary }}
</li>
{% endfor %}
......
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