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

@ -11,18 +11,27 @@ layout: default
<div class="col-md-12 post">
<header class="post-header">
<h1 class="post-title">{{ post.title }}</h1>
<p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}{% if post.author %} • {{ post.author }}{% endif %}{% if post.meta %} • {{ post.meta }}{% endif %}</p>
<h2 class="post-title">
<a href="{{ post.url | prepend: site.baseurl }}">
{{ post.title }}
</a>
</h2>
<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 %}
{% 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 %}
</article>
</div>
</div>
</div>