summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/about/blurb.html5
-rw-r--r--templates/about/figure.html8
-rw-r--r--templates/about/team.html4
-rw-r--r--templates/post.html2
-rw-r--r--templates/posts.html4
5 files changed, 10 insertions, 13 deletions
diff --git a/templates/about/blurb.html b/templates/about/blurb.html
index 630cf65..4389d47 100644
--- a/templates/about/blurb.html
+++ b/templates/about/blurb.html
@@ -1,4 +1,3 @@
-<div id="{{ tutor.id() }}">
- <h2>{{ tutor.display_name() }}</h2>
- <p>{{ tutor.blurb()|markdown }}</p>
+<div id="{{ tutor.get_id() }}">
+ {{ tutor.get_blurb()|markdown }}
</div>
diff --git a/templates/about/figure.html b/templates/about/figure.html
index 2b8e308..4a4c365 100644
--- a/templates/about/figure.html
+++ b/templates/about/figure.html
@@ -1,8 +1,8 @@
<figure class="shadowy">
<picture>
- <source srcset="/team/{{ tutor.id() }}.webp" type="image/webp" />
- <source srcset="/team/{{ tutor.id() }}.png" type="image/png" />
- <img alt="{{ tutor.display_name() }}" src="/team/{{ tutor.id() }}.png" />
+ <source srcset="/team/{{ tutor.get_id() }}/{{ tutor.get_id() }}.webp" type="image/webp" />
+ <source srcset="/team/{{ tutor.get_id() }}/{{ tutor.get_id() }}.png" type="image/png" />
+ <img alt="{{ tutor.get_name() }}" src="/team/{{ tutor.get_id() }}/{{ tutor.get_id() }}.png" />
</picture>
- <figcaption>{{ tutor.display_name() }}</figcaption>
+ <figcaption>{{ tutor.get_name() }}</figcaption>
</figure>
diff --git a/templates/about/team.html b/templates/about/team.html
index b1f0588..2857efe 100644
--- a/templates/about/team.html
+++ b/templates/about/team.html
@@ -1,8 +1,6 @@
-{% let flip = true %}
-
{% for tutor in tutors %}
<section class="quiet flexible">
- {% if flip == true %}
+ {% if loop.index0 % 2 == 0 %}
{% include "blurb.html" %}
{% include "figure.html" %}
{% else %}
diff --git a/templates/post.html b/templates/post.html
index 57964e9..8346f16 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -2,7 +2,7 @@
<html>
<body>
<article>
- {{ article|markdown }}
+ {{ post.get_article()|markdown }}
</article>
</body>
</html>
diff --git a/templates/posts.html b/templates/posts.html
index 9f522a6..57d2480 100644
--- a/templates/posts.html
+++ b/templates/posts.html
@@ -4,8 +4,8 @@
<section class="quiet">
<p>
<ul>
- {% for title in post_titles %}
- <li>{{ title }}</li>
+ {% for post in posts %}
+ <li>{{ post.get_title() }}</li>
{% endfor %}
</ul>
</p>