forked from reudnetz/website
add some css elements to the blog template
This commit is contained in:
parent
c3fe78040b
commit
f049281f73
1 changed files with 16 additions and 14 deletions
|
@ -1,18 +1,20 @@
|
||||||
{% extends "page.html" %}
|
{% extends "page.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{{ page.content | safe }}
|
{{ page.content | safe }}
|
||||||
{% set posts = get_section(path="blogposts/_index.md") %}
|
{% set posts = get_section(path="blogposts/_index.md") %}
|
||||||
|
|
||||||
{% for post in posts.pages %}
|
{% for post in posts.pages %}
|
||||||
<h2><a href="{{ get_url(path=post.path) }}" title="{{ post.title }}">{{ post.title }}</a></h2>
|
<h2 class="fg8" style="margin-bottom: 0px;"><a
|
||||||
<p class="date">{{ post.date }}</p>
|
href="{{ get_url(path=post.path) }}" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||||
<div class="post-content">
|
<p class="fg4" style="margin-bottom: 0px;margin-top: 0px;">{{ post.date }}</p>
|
||||||
{% if post.summary %}
|
<div class="fg12">
|
||||||
{{ post.summary | safe }}
|
{% if post.summary %}
|
||||||
{% else %}
|
{{ post.summary | safe }}
|
||||||
{{ post.content | safe }}
|
{% else %}
|
||||||
{% endif %}
|
{{ post.content | safe }}
|
||||||
</div>
|
{% endif %}
|
||||||
{% endfor %}
|
<hr style="margin-bottom: 1.5em">
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
Loading…
Reference in a new issue