1
0
mirror of https://github.com/balkian/balkian.github.com.git synced 2025-08-23 12:12:20 +00:00

Added tags

This commit is contained in:
J. Fernando Sánchez
2015-12-10 15:44:10 +01:00
parent bb6c1b8a1e
commit 42a247c89f
7 changed files with 95 additions and 11 deletions

View File

@@ -27,9 +27,18 @@
<div class="container">
<div class="navbar-header">
<ul class="nav navbar-nav">
<li {% if article or not page %}class="active" {% endif %}>
<li {% if page_name == 'index' %}class="active" {% endif %}>
<a href="/"><i class="fa fa-home fa-large"></i></a>
</li>
{% for c,carts in categories %}
<li {% if page_name and page_name == c.page_name %} class="active"
{% endif %} >
<a href="/{{ c.url }}">{{ c.name | capitalize }}</a>
</li>
{% endfor %}
<li {% if page_name == "tags" %} class="active" {%endif%}>
<a href="/tags.html">Tags</a>
</li>
{% for p in pages %} {% if "/page" in p.url %}
{% else %}
{% if p.url != "/index.html" %}
@@ -90,7 +99,7 @@
{% for p in articles[:5] %}
<dt><a href="{{ SITE_URL }}/{{ p.url }}">{{ p.title }}</a></dt>
{% for c in p.tags %}
<a class="tag" href="/tag/{{ c }}.html"><dd class="label label-default">{{ c }}</dd></a>
<dd class="tag"><a class="label" href="/tag/{{ c }}.html">{{ c }}</a></dd>
{% endfor %}
{% endfor %}
</dl>
@@ -120,7 +129,7 @@
<li><a href="http://facebook.com/balkian"><i class="fa fa-facebook"></i></a></li>
</ul>
<p>
Creative Commons A-SA-NC
<i class="fa fa-creative-commons"></i> Creative Commons A-SA-NC
</p>
</footer>
</div>