Browse Source

renaming post class to message

master
manetta 2 years ago
parent
commit
f711e6c0de
  1. 4
      LogBot/stylesheets/float.css
  2. 4
      LogBot/template.html
  3. 4
      LogBot/template.rss

4
LogBot/stylesheets/float.css

@ -9,12 +9,12 @@ body {
font-size: 16px;
line-height: 1.6;
}
.post {
div.post {
max-width: 350px;
margin: 1.5em 1em;
float: left;
}
.post p.key {
div.post p.key {
margin: 2em 0 1em 5em;
font-size: 12px;
}

4
LogBot/template.html

@ -15,7 +15,7 @@
<p class="key">{{ num }}</p>
<p class="date">{{ db[num]['date'] }}</p>
{% if 'media' in db[num] %}
<p class="post">
<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'] %}
@ -27,7 +27,7 @@
{% endif %}
</p>
{% else %}
<p class="post">{{ db[num]['post'] }}</p>
<p class="message">{{ db[num]['post'] }}</p>
{% endif %}
</div>
{% endfor %}

4
LogBot/template.rss

@ -13,7 +13,7 @@
<guid>{{ log_path }}#{{ x }}</guid>
<description>
{% if 'media' in post %}
<p class="post">
<p>
{% if 'image' in post.media.type %}
<img src="{{ baseurl }}{{ post.media.path }}" loading="lazy"></img>
{% elif 'application' in post.media.type %}
@ -27,7 +27,7 @@
{% endif %}
</p>
{% else %}
<p class="post">{{ post.post }}</p>
<p>{{ post.post }}</p>
{% endif %}
</description>
{% if 'media' in post %}<enclosure url="{{ baseurl }}{{ post.media.path }}" length="{{ post.media.size }}" type="{{ post.media.type }}" />{% endif %}

Loading…
Cancel
Save