From 550fe42cfb028d53c52115afbc5428321d834c9f Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 11 Feb 2021 19:12:20 +0100 Subject: [PATCH] fix feed layout --- _layouts/default.html | 5 +++-- _sass/style.scss | 27 ++++++++++++++++++++++++--- index.html | 16 +++++++--------- 3 files changed, 34 insertions(+), 14 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 22714f5..8b8d253 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,9 +2,10 @@ - {{ site.title }} + + {% seo %} @@ -30,7 +31,7 @@

{{ site.description }}

- Email: owo@fef.moe + Email: {{ site.author.email }}
Fediverse: diff --git a/_sass/style.scss b/_sass/style.scss index 722cf1b..7d93390 100644 --- a/_sass/style.scss +++ b/_sass/style.scss @@ -17,9 +17,6 @@ body { footer { padding: 20px 0; -} - -footer { border-top: thin solid $color-primary; } @@ -34,6 +31,30 @@ header h1 { font-family: "OleoScript", sans-serif; } +main { + max-width: $content-width; + margin: 0 auto; + padding: 0 20px; +} + +article.feed-item { + margin: 0 0 20px; + padding: 0 0 20px; + border-bottom: thin solid rgba(255, 255, 255, 0.2); + + :last-child { + margin-bottom: 0; + } +} + +article.feed-item:first-child { + margin-top: 40px; +} + +article.feed-item:last-child { + border-bottom: 0; +} + a { color: $color-primary; } diff --git a/index.html b/index.html index d14911d..2eb6d84 100644 --- a/index.html +++ b/index.html @@ -2,12 +2,10 @@ layout: default --- -

+{% for post in site.posts %} +
+ {{ post.date | date: "%Y-%m-%d" }} +

{{ post.title }}

+ {{ post.excerpt }} +
+{% endfor %}