mirror of
https://github.com/zyllian/zyllian.github.io.git
synced 2025-05-10 02:26:45 -07:00
the webdog update
This commit is contained in:
parent
00c90a12d7
commit
3c43403089
26 changed files with 29 additions and 4752 deletions
26
site/templates/image/list.tera
Normal file
26
site/templates/image/list.tera
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue