diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2025-04-29 18:51:40 +0100 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2025-04-29 18:51:40 +0100 |
commit | 0e8ada1eff8799437c9be1bc2af10d6198fa8cad (patch) | |
tree | 65d40b0c83fc2477306d561d8b98741e8e6585c6 /edaweb/templates/random.html.j2 | |
parent | 9e077a790919e2980111262fbde500a5cee828f8 (diff) | |
download | eda.gay-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.tar.gz eda.gay-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.zip |
Added inline HTML into blogposts, refactored a bit
Diffstat (limited to 'edaweb/templates/random.html.j2')
-rw-r--r-- | edaweb/templates/random.html.j2 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/edaweb/templates/random.html.j2 b/edaweb/templates/random.html.j2 new file mode 100644 index 0000000..76b433b --- /dev/null +++ b/edaweb/templates/random.html.j2 @@ -0,0 +1,22 @@ +{% extends "template.html.j2" %} +{% block content %} + <aside id="tags"> + <h1>current search tags: (click to remove)</h1> + <ul> + {% for tag in sbi.searchTags %} + <li><a href={{"/random?tags=" + "+".join(sbi.remove_tag(tag))}}>{{tag}}</a></li> + {% endfor %} + </ul> + <h1>this image's tags:</h1> + <ul> + {% for tag in sbi.tags %} + <li><a href={{"/random?tags=" + "+".join(sbi.searchTags + [tag])}}>{{tag}}</a></li> + {% endfor %} + </ul> + </aside> + <section id="randomImage"> + <a href={{sbi.source}}><img src={{localimg}}></a> + <h1><a href={{"/random?tags=" + "+".join(sbi.searchTags)}}>generate another</a></h1> + <h2><a href={{sbi.source}}>artist link</a></h2> + </section> +{% endblock %}
\ No newline at end of file |