summaryrefslogtreecommitdiff
path: root/index.html.j2
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-04-05 18:14:01 +0200
committerJulian T <julian@jtle.dk>2021-04-05 18:14:01 +0200
commit5d4049f7f9de2507c18702fd3892548850eae6d5 (patch)
tree9a845f4fedcd2f0ebfcbb0b8ce273a8df0d6d64a /index.html.j2
parentce4983421e2d4bad3a4e563920f46f210aad7334 (diff)
Reworked the config structure
Diffstat (limited to 'index.html.j2')
-rw-r--r--index.html.j224
1 files changed, 12 insertions, 12 deletions
diff --git a/index.html.j2 b/index.html.j2
index fde5f4b..cc7dc28 100644
--- a/index.html.j2
+++ b/index.html.j2
@@ -19,29 +19,29 @@
<body>
<p>Billeder taget på forskellige ferier etc, som jeg bruger til baggrund.</p>
- {% if cgit is not none %}
+ {% if ctx.cgit is not none %}
<p>Klik på et billede for at få fuld opløsning.
Højere opløsning samt licens kan også findes her <a href="{{ cgit }}/tree">her</a>.</p>
{% endif %}
- {% for post in posts %}
+
+ {% for img in images %}
<div class="post">
- <p>{{ post.text }}</p>
- {% for img in post.imgs %}
- {% if cgit is not none %}
- <a href="{{cgit}}/plain/{{img}}">
- <img src="{{ imgfetch(img) }}" />
+ {% if img.description is not none %}
+ <p>{{ img.description }}</p>
+ {% endif %}
+ {% if img.fullurl is not none %}
+ <a href="{{ img.fullurl }}">
+ <img src="{{ img.scaledpath }}" />
</a>
{% else %}
- <img src="{{ imgfetch(img) }}" />
+ <img src="{{ img.scaledpath }}" />
{% endif %}
-
- {% endfor %}
</div>
{% endfor %}
- {% if git is not none %}
- <p>Bygget fra commit {{ git }}</p>
+ {% if ctx.git is not none %}
+ <p>Bygget fra commit {{ ctx.git }}</p>
{% endif %}
</body>
</html>