aboutsummaryrefslogtreecommitdiffstats
path: root/edaweb/templates/index.html.j2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-04-29 18:51:40 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-04-29 18:51:40 +0100
commit0e8ada1eff8799437c9be1bc2af10d6198fa8cad (patch)
tree65d40b0c83fc2477306d561d8b98741e8e6585c6 /edaweb/templates/index.html.j2
parent9e077a790919e2980111262fbde500a5cee828f8 (diff)
downloadeda.gay-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.tar.gz
eda.gay-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.zip
Added inline HTML into blogposts, refactored a bit
Diffstat (limited to 'edaweb/templates/index.html.j2')
-rw-r--r--edaweb/templates/index.html.j224
1 files changed, 24 insertions, 0 deletions
diff --git a/edaweb/templates/index.html.j2 b/edaweb/templates/index.html.j2
new file mode 100644
index 0000000..d6c08d8
--- /dev/null
+++ b/edaweb/templates/index.html.j2
@@ -0,0 +1,24 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <aside>
+ <a><i>{{ "%d days until FFS" % days_till_ffs.days }}</i></a>
+ <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}}
+ <section id="recent_commits">
+ <h3>recent git commits:</h3>
+ <ul>
+ {% for commit in commits %}
+ <li>[<a href="{{commit['git_repo_url']}}">{{commit["repo"]}}</a>] {+{{commit["stats"]["additions"]}}; -{{commit["stats"]["deletions"]}}} <a href="{{commit['git_commit_url']}}">{{commit["message"]}}</a> - <a href="{{commit['github_commit_url']}}">github mirror</a></li>
+ {% endfor %}
+ </ul>
+ </section>
+{% endblock %}