diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2021-03-06 19:36:10 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2021-03-06 19:36:10 +0000 |
commit | dd073f7256bd53162e1ee93c6777ba6c7e97f3ca (patch) | |
tree | 00f45309b402d98696cd04d5958505b162b8941b /templates | |
parent | eb7d513356362db925eefbf50f967b4d983d7bd9 (diff) | |
download | boymoder.blog-dd073f7256bd53162e1ee93c6777ba6c7e97f3ca.tar.gz boymoder.blog-dd073f7256bd53162e1ee93c6777ba6c7e97f3ca.zip |
added getting random anime images
Diffstat (limited to 'templates')
-rw-r--r-- | templates/random.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/random.html b/templates/random.html new file mode 100644 index 0000000..e36bb87 --- /dev/null +++ b/templates/random.html @@ -0,0 +1,22 @@ +{% extends "template.html" %} +{% 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={{sbi.imurl}}></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 |