This commit is contained in:
sakrecoer 2020-12-25 20:28:53 +01:00
parent db86e11963
commit dd42b76a4a
3 changed files with 31 additions and 25 deletions

View file

@ -389,18 +389,21 @@ footer {
border-radius: var(--border-radius); border-radius: var(--border-radius);
justify-content: space-between; justify-content: space-between;
div { div {
flex: 1 0 280px; flex: 1 1 280px;
padding: 20px; padding: 20px;
margin: 20px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
background-color: var(--bg-alt); background-color: var(--bg-alt);
box-shadow: 15px 15px 28px 24px var(--border-alt);
border-radius: var(--border-radius);
img { img {
max-width: 120px; max-width: 120px;
height: auto; height: auto;
} }
.date { .date {
font-size: 0.6em; font-size: 0.6em;
margin-top: 40px;
} }
h2 { h2 {
padding-top: 0; padding-top: 0;
@ -408,6 +411,7 @@ footer {
} }
hr { hr {
margin-top: 40px;
border: 1px solid var(--fg-alt); border: 1px solid var(--fg-alt);
} }
} }

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View file

@ -134,6 +134,7 @@ apps:
{% endfor %} {% endfor %}
<section id="pleroma"> <section id="pleroma">
<h2>Fediverse</h2>
<div class="container"> <div class="container">
{% assign nasa = site.data.pleroma.feed.entry | sort: 'published' | reverse %} {% assign nasa = site.data.pleroma.feed.entry | sort: 'published' | reverse %}
@ -147,28 +148,7 @@ apps:
<p> <p>
{{ item.content }} {{ item.content }}
</p> </p>
<p class="date">
{% assign d = item.published | date: "%-d" %}
{% case d %}
{% when '1' or '21' or '31' %}{{ d }}:st
{% when '2' or '22' %}{{ d }}:nd
{% when '3' or '23' %}{{ d }}:rd
{% else %}{{ d }}:th
{% endcase %} of
{% assign m = item.published | date: "%-m" %}
{% case m %}
{% when '1' %}January
{% when '2' %}February
{% when '3' %}March
{% when '4' %}April
{% when '5' %}May
{% when '6' %}June
{% when '7' %}July
{% when '8' %}August
{% when '9' %}September {% when '10' %}October {% when '11' %}November {% when '12' %}December
{% endcase %}
{{ item.published | date: "%Y" }} - {{ item.published | date: "%R" }}
</p>
{% for enclosure in item.link %} {% for enclosure in item.link %}
{% if enclosure.type == "image/jpeg" %} {% if enclosure.type == "image/jpeg" %}
<img src="{{ enclosure.href }}" /> <img src="{{ enclosure.href }}" />
@ -177,6 +157,28 @@ apps:
{% endfor %} {% endfor %}
<hr /> <hr />
<p class="date">
{% assign d = item.published | date: "%-d" %}
{% case d %}
{% when '1' or '21' or '31' %}{{ d }}:st
{% when '2' or '22' %}{{ d }}:nd
{% when '3' or '23' %}{{ d }}:rd
{% else %}{{ d }}:th
{% endcase %} of
{% assign m = item.published | date: "%-m" %}
{% case m %}
{% when '1' %}January
{% when '2' %}February
{% when '3' %}March
{% when '4' %}April
{% when '5' %}May
{% when '6' %}June
{% when '7' %}July
{% when '8' %}August
{% when '9' %}September {% when '10' %}October {% when '11' %}November {% when '12' %}December
{% endcase %}
{{ item.published | date: "%Y" }} - {{ item.published | date: "%R" }}
</p>
</div> </div>
{% endunless %} {% endunless %}
{% endfor %} {% endfor %}