-
Notifications
You must be signed in to change notification settings - Fork 633
/
Copy pathblog.html
45 lines (41 loc) · 1.74 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{% extends "base.html" %}
{% block meta_header %}
<meta name="description" content="A blog with tutorials for Full Stack Python developers.">
{% endblock %}
{% block title %}Blog - {% endblock %}
{% block css %}<style>{% include "css/base.css" %}{% include "css/responsive.css" %}</style>{% endblock %}
{% block banner %}{% endblock %}
{% block content %}
<div class="row">
<div class="c12">
<h1 style="display:none">Blog Tutorials</h1>
{% for a in articles %}
{% if a.headerimage and a.headeralt %}
<div class="row" style="padding-top: 30px;">
<div class="c3">
<img src="{{ a.headerimage }}" alt="{{ a.headeralt }}" width="100%" style="padding:4px 0 6px 0;border-radius:12px">
</div>
<div class="c9">
{% endif %}
<h2 style="font-size:24px;padding-top:0;margin-top:0"><a href="/blog/{{ a.slug }}.html">{{ a.title }}</a></h2>
<div style="font-size:12px;color:#666;margin:0 0 10px">
{% if a.modified != a.date %}
Post updated by
{% if a.author == "Matt Makai" %}<a href="/about-author.html">Matt Makai</a>{% else %}<a href="{{ a.authorlink }}">{{ a.author }}</a>{% endif %}
on {{ a.modified.strftime('%B %d, %Y') }}. Originally posted
on {{ a.date.strftime('%B %d, %Y') }}.
{% else %}
Posted by
{% if a.author == "Matt Makai" %}<a href="/about-author.html">Matt Makai</a>{% else %}<a href="{{ a.authorlink }}">{{ a.author }}</a>{% endif %}
on {{ a.date.strftime('%B %d, %Y') }}.
{% endif %}
</div>
{{ a.content|truncate(350) }} (<a href="/blog/{{ a.slug }}.html">read more</a>)
{% if a.headerimage and a.headeralt %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
{% endblock %}