A place for all our bot adventures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
1.2 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>{{ title }} - (Generator: LogBot)</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>{{ title }}</h1>
(Follow this log: <a href="./feed.rss.xml">RSS</a>)
<div id="container">
{% for num in sorted_numbering | reverse %}
<div id="{{ num }}" class="post">
<p class="key">{{ num }}</p>
<p class="date">{{ db[num]['date'] }}</p>
{% if 'media' in db[num] %}
<p class="message">
{% if 'image' in db[num]['media']['type'] %}
<img src="{{ db[num]['media']['path'] }}" loading="lazy">
{% elif 'application' in db[num]['media']['type'] %}
<iframe src="{{ db[num]['media']['path'] }}" loading="lazy"></iframe>
{% elif 'audio' in db[num]['media']['type'] %}
<audio src="{{ db[num]['media']['path'] }}" preload="none" controls></audio>
{% elif 'video' in db[num]['media']['type'] %}
<video src="{{ db[num]['media']['path'] }}" preload="none" controls></video>
{% endif %}
</p>
{% else %}
<p class="message">{{ db[num]['post'] }}</p>
{% endif %}
</div>
{% endfor %}
</div>
<footer></footer>
</body>
</html>