From 4039b9bfe2de55b75a550467eac0ca27c485afdd Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 13 Jul 2024 14:05:07 -0600 Subject: Improve archive and categories page layouts --- _includes/index.liquid | 26 +++++++++++++------------- _layouts/post.liquid | 8 ++++++-- archive.liquid | 38 ++++++++++++++++++++++---------------- assets/css/styles.css | 28 +++++++++++++++++++++++++--- categories.liquid | 16 +++++++++++----- 5 files changed, 77 insertions(+), 39 deletions(-) diff --git a/_includes/index.liquid b/_includes/index.liquid index fe7567f..1fa5954 100644 --- a/_includes/index.liquid +++ b/_includes/index.liquid @@ -1,19 +1,19 @@
{% for post in paginator.posts %} - -

- - {{ post.title }} - -

-

- {% capture month%}{{ post.date | date: "%b" }}{% endcapture %} - {{ site.data[site.active_lang].strings.date[month]}} {{ post.date | date: "%e, %Y" }} -

- - {{ post.excerpt }} - +
+
+ {% capture month%}{{ post.date | date: "%b" }}{% endcapture %} + {{ site.data[site.active_lang].strings.date[month]}} {{ post.date | date: "%e, %Y" }} +
+
+ + {{ post.title }} + + {{ post.excerpt }} +
+
{% endfor %}
{% include pagination.liquid %} + diff --git a/_layouts/post.liquid b/_layouts/post.liquid index fa459bc..016b610 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -4,7 +4,7 @@ {% include banner.liquid %}
- diff --git a/assets/css/styles.css b/assets/css/styles.css index dea2080..c98f3fe 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -14,7 +14,7 @@ } p { - font-size: 22px; + font-size: 20px; } } @@ -99,7 +99,7 @@ } body { - font-family: Roboto, Helvetica, Arial, sans-serif !important; + font-family: "Inter", sans-serif !important; margin: 0; } } @@ -143,6 +143,23 @@ color: #113f67; } + .date { + color: #7b8894; + text-align: right; + font-style: italic; + } + + .archive-date { + color: #7b8894; + text-align: left; + font-style: italic; + font-size: 21px; + } + + .index-content { + font-size: 20px; + } + a { color: #38598b; } @@ -178,7 +195,7 @@ body { - font-family: Roboto, Helvetica, Arial, sans-serif !important; + font-family: "Inter", sans-serif !important; margin: 0; background: #f3f3f3; } @@ -193,6 +210,11 @@ font-weight: bold; } +.pull-left { + text-align: left; + font-size: 21px; +} + :not(.sidebar-element) li { list-style-type: disc; margin-top: .7em; diff --git a/categories.liquid b/categories.liquid index c4cccbf..23b31a1 100644 --- a/categories.liquid +++ b/categories.liquid @@ -6,10 +6,16 @@ permalink: /categories.html
{% for tag in site.tags %}

{{ tag[0] }}

- - {% endfor %} +
+
+ {% capture month%}{{ post.date | date: "%b" }}{% endcapture %} + {{ site.data[site.active_lang].strings.date[month]}} {{ post.date | date: "%e, %Y" }} +
+ +
+ {% endfor %} + {% endfor %}
-- cgit v1.2.3