From dd42b76a4a42b47e24c179e0c2add9aaf457f7d8 Mon Sep 17 00:00:00 2001 From: sakrecoer Date: Fri, 25 Dec 2020 20:28:53 +0100 Subject: [PATCH] layout --- _sass/_layout.scss | 8 +++++-- images/setto-logoicon.svg | 2 +- index.html | 46 ++++++++++++++++++++------------------- 3 files changed, 31 insertions(+), 25 deletions(-) diff --git a/_sass/_layout.scss b/_sass/_layout.scss index b1bebc4..cb70ad6 100644 --- a/_sass/_layout.scss +++ b/_sass/_layout.scss @@ -389,18 +389,21 @@ footer { border-radius: var(--border-radius); justify-content: space-between; div { - flex: 1 0 280px; + flex: 1 1 280px; padding: 20px; + margin: 20px; overflow: hidden; text-overflow: ellipsis; background-color: var(--bg-alt); + box-shadow: 15px 15px 28px 24px var(--border-alt); + border-radius: var(--border-radius); img { max-width: 120px; height: auto; } .date { font-size: 0.6em; - margin-top: 40px; + } h2 { padding-top: 0; @@ -408,6 +411,7 @@ footer { } hr { + margin-top: 40px; border: 1px solid var(--fg-alt); } } diff --git a/images/setto-logoicon.svg b/images/setto-logoicon.svg index b11a070..69b8528 100644 --- a/images/setto-logoicon.svg +++ b/images/setto-logoicon.svg @@ -1,2 +1,2 @@ - + diff --git a/index.html b/index.html index 7a67a2a..f964d4d 100644 --- a/index.html +++ b/index.html @@ -134,6 +134,7 @@ apps: {% endfor %}
+

Fediverse

{% assign nasa = site.data.pleroma.feed.entry | sort: 'published' | reverse %} @@ -147,28 +148,7 @@ apps:

{{ item.content }}

-

- {% 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" }} -

+ {% for enclosure in item.link %} {% if enclosure.type == "image/jpeg" %} @@ -177,6 +157,28 @@ apps: {% endfor %}
+

+ {% 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" }} +

{% endunless %} {% endfor %}