diff options
Diffstat (limited to 'index.html.j2')
-rw-r--r-- | index.html.j2 | 24 |
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> |