blob: e0aede929c5c2ad4a8628c27d67e621f211cd862 (
plain)
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
|
{% extends "template.html.j2" %}
{% block content %}
<aside>
<section id="recent_thoughts">
<h4>recent thoughts:</h4>
<ul>
{% for id_, title in featured_thoughts %}
<li><a href="{{'/thought?id=%i' % id_}}">{{title}}</a></li>
{% endfor %}
</ul>
</section>
<img id="sidebar_img" alt="{{sidebar_img[0]}}" src="{{sidebar_img[1]}}">
</aside>
{{markdown|safe}}
{% if tweets != None %}
<section id="recent_tweets">
<h3>recent tweets</h3>
<ul>
{% for text, url in tweets %}
{% if text == None %}
<li><a href="{{url}}">[image only]</a></li>
{% else %}
<li><a href="{{url}}">{{text}}</a></li>
{% endif %}
{% endfor %}
</ul>
</section>
{% endif %}
<section id="recent_commits">
<h3>recent git commits:</h3>
<ul>
{% for commit in commits %}
<li>[<a href="{{'https://git.eda.gay/' + commit['repo']}}">{{commit["repo"]}}</a>] {+{{commit["stats"]["additions"]}}; -{{commit["stats"]["deletions"]}}} <a href="{{commit['url'].replace('github.com/jwansek', 'git.eda.gay')}}">{{commit["message"]}}</a> - <a href="{{commit['url']}}">github mirror</a></li>
{% endfor %}
</ul>
</section>
{% endblock %}
|