forked from reudnetz/website
add a little blog. css still missing :D
This commit is contained in:
parent
7bdf2109a5
commit
c3fe78040b
5 changed files with 52 additions and 0 deletions
18
templates/blog.html
Executable file
18
templates/blog.html
Executable file
|
@ -0,0 +1,18 @@
|
|||
{% extends "page.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ page.content | safe }}
|
||||
{% set posts = get_section(path="blogposts/_index.md") %}
|
||||
|
||||
{% for post in posts.pages %}
|
||||
<h2><a href="{{ get_url(path=post.path) }}" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||
<p class="date">{{ post.date }}</p>
|
||||
<div class="post-content">
|
||||
{% if post.summary %}
|
||||
{{ post.summary | safe }}
|
||||
{% else %}
|
||||
{{ post.content | safe }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock content %}
|
Loading…
Add table
Add a link
Reference in a new issue