site/blog.html

24 lines
559 B
HTML
Raw Normal View History

2014-10-26 13:11:10 +00:00
---
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">&gt; Weiterlesen</a></p>
{% endif %}
</div>
</div>
</div>
{% endfor %}