aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-03-06 15:56:32 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2021-03-06 15:56:32 +0000
commit7f549879d0a29313c75e96a623c1b4606dce5a06 (patch)
tree06e9aa591a664265ddda0ad8dd35c43eaba6e661 /templates
parent7cc501c5efde9da7c5e4dbfd854cdeb80a8e0ce9 (diff)
downloadboymoder.blog-7f549879d0a29313c75e96a623c1b4606dce5a06.tar.gz
boymoder.blog-7f549879d0a29313c75e96a623c1b4606dce5a06.zip
added caching tweets, added git commits
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index d79743b..fd0bae1 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -15,7 +15,7 @@
<section id="recent_tweets">
<h1>recent tweets</h1>
<ul>
- {% for url, text in tweets %}
+ {% for text, url in tweets %}
{% if text == None %}
<li><a href={{url}}>[image only]</a></li>
{% else %}
@@ -25,4 +25,12 @@
</ul>
</section>
{% endif %}
+ <section id="recent commits">
+ <h1>recent git commits:</h4>
+ <ul>
+ {% for commit in commits %}
+ <li><a href={{commit["url"]}}>{{"[%s] %s {+%i;-%i}" % (commit["repo"], commit["message"], commit["stats"]["additions"], commit["stats"]["deletions"])}}</a></li>
+ {% endfor %}
+ </ul>
+ </section>
{% endblock %} \ No newline at end of file