update templates for webdog

This commit is contained in:
zyl 2024-11-13 08:38:33 -08:00
parent f1d3d44ebf
commit bb8c8a725f
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
5 changed files with 31 additions and 31 deletions

View file

@ -1,22 +1,22 @@
{% extends "base.tera" %}
{% block content %}
{% if tag %}
<h1>images tagged {{tag}}</h1>
{% if data.tag %}
<h1>images tagged {{ data.tag }}</h1>
<p><a href="/images/">view all images</a></p>
{% else %}
<h1>images</h1>
<p><a href="/i/tags">view image tags</a></p>
<p><a href="rss.xml">rss feed</a></p>
{% endif %}
<h3>page {{page}}/{{page_max}}</h3>
{% if previous %}
<a href="./{{previous}}">previous page</a>
<h3>page {{ data.page }}/{{ data.page_max }}</h3>
{% if data.previous %}
<a href="./{{data.previous}}">previous page</a>
{% endif %}
{% if next %}
<a href="./{{next}}">next page</a>
{% if data.next %}
<a href="./{{data.next}}">next page</a>
{% endif %}
<div class="images-list">
{% for resource in resources %}
{% for resource in data.resources %}
<a class="image" href="/i/{{resource.id}}">
<img class="image-actual" src="{{resource.cdn_file}}" alt="{{resource.alt}}">
<span class="title">{{resource.title}}</span>