added link to blogpost to blog headline, also some cleaning, we cant have more than 4 navigation points

This commit is contained in:
Timm Szigat
2015-10-17 21:24:11 +02:00
parent 090df14b9a
commit cef7b0df10
4 changed files with 110 additions and 58 deletions

View File

@ -6,13 +6,21 @@ layout: default
<div class="row">
{% for post in site.posts limit:4 %}
<div class="col-md-3">
<h2>{{ post.title }}</h2>
<h2>
<a href="{{ post.url | prepend: site.baseurl }}">
{{ post.title }}
</a>
</h2>
<p>
{{ post.content | truncatewords:20 }}
</p>
{% assign wordcount = post.content | number_of_words %}
{% if wordcount > 20 %}
<p><a class="btn btn-default" href="{{ post.url | prepend: site.baseurl }}" role="button">&gt; Weiterlesen</a></p>
<p>
<a class="btn btn-default" href="{{ post.url | prepend: site.baseurl }}" role="button">
&gt; Weiterlesen
</a>
</p>
{% endif %}
</div>
{% endfor %}