the webdog update

This commit is contained in:
zyl 2024-11-08 18:42:07 -08:00
parent 00c90a12d7
commit 3c43403089
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
26 changed files with 29 additions and 4752 deletions

View file

@ -0,0 +1,26 @@
{% extends "base.tera" %}
{% block content %}
{% if tag %}
<h1>images tagged {{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>
{% endif %}
{% if next %}
<a href="./{{next}}">next page</a>
{% endif %}
<div class="images-list">
{% for resource in 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>
</a>
{% endfor %}
</div>
{% endblock content %}

View file

@ -0,0 +1,16 @@
{% extends "base.tera" %}
{% block content %}
<div class="image-full">
<h1 class="title">{{title}}</h1>
<span class="timestamp">published {{timestamp}}</span>
<img class="image-actual" src="{{cdn_file}}" alt="{{alt}}">
{{ content | safe }}
<p><a href="{{cdn_file}}">view full size image</a></p>
<h3 class="tags-title">tags</h3>
<div class="image-tags">
{% for tag in tags %}
<a class="tag" href="/i/tag/{{tag}}/">{{tag}}</a>{% if not loop.last %},{% endif %}
{% endfor %}
</div>
</div>
{% endblock content %}

View file

@ -0,0 +1 @@
<img src="{{cdn_file}}" alt="{{alt}}">