fixed blogpage

This commit is contained in:
Timm Szigat 2014-11-04 01:58:48 +01:00
parent 012d858762
commit 5f0b5a8776
2 changed files with 18 additions and 11 deletions

View File

@ -2,6 +2,7 @@
layout: post layout: post
title: "Freifunk versorgt Nord Open Air mit Internet" title: "Freifunk versorgt Nord Open Air mit Internet"
date: 2014-08-02 16:31:19 date: 2014-08-02 16:31:19
author: Julian
categories: Freifunk categories: Freifunk
--- ---
Alles begann mit einer Anfrage des Nord Open Air Veranstalters: Alles begann mit einer Anfrage des Nord Open Air Veranstalters:

View File

@ -6,17 +6,23 @@ layout: default
{% if forloop.first == false %} {% if forloop.first == false %}
<hr> <hr>
{% endif %} {% endif %}
<div class="container" id="posts"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12 post">
<h2>{{ post.title }}</h2>
<p> <header class="post-header">
{{ post.content | truncatewords:200 }} <h1 class="post-title">{{ post.title }}</h1>
</p> <p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}{% if post.author %} • {{ post.author }}{% endif %}{% if post.meta %} • {{ post.meta }}{% endif %}</p>
</header>
<article class="post-content">
{{post.content}}
{% assign wordcount = post.content | number_of_words %} {% assign wordcount = post.content | number_of_words %}
{% if wordcount > 200 %} {% if wordcount > 200 %}
<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 %} {% endif %}
</article>
</div> </div>
</div> </div>
</div> </div>