Commit e941ca28 by Tobias Rautenkranz

Link old posts only when necessary

parent 12b9da11
......@@ -30,13 +30,16 @@ layout: default
{% endfor %}
</ul>
<h3>
{% assign post_count = site.posts | size %}
{% if post_count > post_limit %}
<a href="blog/#{{post_limit | plus: 1 }}">
old posts ({{site.posts | size | minus: post_limit}})</a>
old posts ({{ post_count | minus: post_limit}})</a>
</h3>
[
<a href="blog/de">deutsch</a>
<a href="blog/en">english</a>
]
{% endif %}
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
......
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