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