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; font-size: 16px;
line-height: 1.6; line-height: 1.6;
} }
.post { div.post {
max-width: 350px; max-width: 350px;
margin: 1.5em 1em; margin: 1.5em 1em;
float: left; float: left;
} }
.post p.key { div.post p.key {
margin: 2em 0 1em 5em; margin: 2em 0 1em 5em;
font-size: 12px; font-size: 12px;
} }

4
LogBot/template.html

@ -15,7 +15,7 @@
<p class="key">{{ num }}</p> <p class="key">{{ num }}</p>
<p class="date">{{ db[num]['date'] }}</p> <p class="date">{{ db[num]['date'] }}</p>
{% if 'media' in db[num] %} {% if 'media' in db[num] %}
<p class="post"> <p class="message">
{% if 'image' in db[num]['media']['type'] %} {% if 'image' in db[num]['media']['type'] %}
<img src="{{ db[num]['media']['path'] }}" loading="lazy"> <img src="{{ db[num]['media']['path'] }}" loading="lazy">
{% elif 'application' in db[num]['media']['type'] %} {% elif 'application' in db[num]['media']['type'] %}
@ -27,7 +27,7 @@
{% endif %} {% endif %}
</p> </p>
{% else %} {% else %}
<p class="post">{{ db[num]['post'] }}</p> <p class="message">{{ db[num]['post'] }}</p>
{% endif %} {% endif %}
</div> </div>
{% endfor %} {% endfor %}

4
LogBot/template.rss

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

Loading…
Cancel
Save