diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2021-12-22 19:35:12 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2021-12-22 19:35:12 +0000 |
commit | 95a5c95842de869cfd7c8e9d1c824dc0780af949 (patch) | |
tree | e1f9f306b1058fe256d88465a833cbf4129951f8 /templates/index.jinja | |
parent | 1f8697b0b4680a146a23e451238c7d76239b97b3 (diff) | |
download | boymoder.blog-95a5c95842de869cfd7c8e9d1c824dc0780af949.tar.gz boymoder.blog-95a5c95842de869cfd7c8e9d1c824dc0780af949.zip |
renamed all template files
Diffstat (limited to 'templates/index.jinja')
-rw-r--r-- | templates/index.jinja | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/templates/index.jinja b/templates/index.jinja new file mode 100644 index 0000000..0bb9604 --- /dev/null +++ b/templates/index.jinja @@ -0,0 +1,37 @@ +{% extends "template.html" %} +{% 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> + </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="{{commit['url']}}">{{"[%s] %s {+%i;-%i}" % (commit["repo"], commit["message"], commit["stats"]["additions"], commit["stats"]["deletions"])}}</a></li> + <!-- <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', 'git.eda.gay') + '.html'}}">{{commit["message"]}}</a> - <a href="{{commit['url']}}">Backup link</a></li> --> + {% endfor %} + </ul> + </section> +{% endblock %}
\ No newline at end of file |