forked from chrisbobbe/jekyll-theme-prologue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
23 lines (23 loc) · 937 Bytes
/
blog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
layout: default
---
{%- assign _posts = site.posts | sort: 'date' | reverse -%}
{%- include header.html scrolly_nav=_posts -%}
<!-- Main -->
<div id="main">
{%- if page.content != "" -%}
{%- include section.html title=page.title photo=page.cover-photo photo-alt=page.cover-photo-alt auto-header=page.auto-header content=page.content -%}
{%- endif -%}
<!-- Posts List -->
{%- for _post in _posts -%}
{%- capture _title -%}
<a href="{{- _post.url | absolute_url -}}">{{- _post.title -}}</a>
{%- endcapture -%}
{%- capture _subtitle -%}
{%- endcapture -%}
{%- capture _excerpt -%}<p>{{- _post.excerpt | strip_html | truncatewords: 100 -}}</p>{%- endcapture -%}
{%- capture _link -%}<a href="{{- _post.url | absolute_url -}}">Weiterlesen</a>{%- endcapture -%}
{%- assign _content = _excerpt | append: _link -%}
{%- include section.html title=_title subtitle=_subtitle content=_content -%}
{%- endfor -%}
</div>