Remove social and blogroll, add tag list instead. Add articles counter

after tag name
This commit is contained in:
kleph 2013-07-24 01:54:27 +02:00
parent a082b7e0f7
commit faa6780507
2 changed files with 13 additions and 3 deletions

View file

@ -40,10 +40,10 @@
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li> <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<!-- {% for cat, null in categories %} {% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> <li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %} {% endfor %}
-->
</ul> </ul>
<p class="pull-right"><a href="{{ SITEURL }}/archives.html">[archives]</a> <a href="{{ SITEURL }}/tags.html">[tags]</a></p> <p class="pull-right"><a href="{{ SITEURL }}/archives.html">[archives]</a> <a href="{{ SITEURL }}/tags.html">[tags]</a></p>
</div> </div>
@ -53,6 +53,7 @@
<div class="row"> <div class="row">
<div class="span3"> <div class="span3">
<div class="well sidebar-nav"> <div class="well sidebar-nav">
<!--
<h3>Blogroll</h3> <h3>Blogroll</h3>
<ul> <ul>
{% for name, link in LINKS %} {% for name, link in LINKS %}
@ -67,6 +68,15 @@
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
-->
<div class="tags">
<h3>Tags</h3>
<ul>
{% for tag, articles in tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} ({{ articles | length }})</a></li>
{% endfor %}
</ul>
</div>
</div> </div>
</div> </div>
<div class="span9"> <div class="span9">

View file

@ -3,7 +3,7 @@
{% block content %} {% block content %}
<ul> <ul>
{% for tag, articles in tags %} {% for tag, articles in tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li> <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }} ({{ articles | length }})</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endblock %} {% endblock %}