added link to blogpost to blog headline, also some cleaning, we cant have more than 4 navigation points
This commit is contained in:
12
index.html
12
index.html
@ -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">> Weiterlesen</a></p>
|
||||
<p>
|
||||
<a class="btn btn-default" href="{{ post.url | prepend: site.baseurl }}" role="button">
|
||||
> Weiterlesen
|
||||
</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
Reference in New Issue
Block a user