renaming post class to message

This commit is contained in:
manetta 2022-02-18 17:11:12 +01:00
parent da02542dfe
commit f711e6c0de
3 changed files with 6 additions and 6 deletions

View File

@ -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;
} }

View File

@ -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 %}

View File

@ -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 %}