forked from Chaospott/site
24 lines
559 B
HTML
24 lines
559 B
HTML
|
---
|
||
|
layout: default
|
||
|
---
|
||
|
|
||
|
{% for post in site.posts %}
|
||
|
{% if forloop.first == false %}
|
||
|
<hr>
|
||
|
{% endif %}
|
||
|
<div class="container" id="posts">
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<h2>{{ post.title }}</h2>
|
||
|
<p>
|
||
|
{{ post.content | truncatewords:200 }}
|
||
|
</p>
|
||
|
{% assign wordcount = post.content | number_of_words %}
|
||
|
{% if wordcount > 200 %}
|
||
|
<p><a class="btn btn-default" href="{{ post.url | prepend: site.baseurl }}" role="button">> Weiterlesen</a></p>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endfor %}
|