From b32d02967528f342d55dfd59fcf2d11039380e3d Mon Sep 17 00:00:00 2001 From: Sebin Nyshkim Date: Sun, 27 Jul 2025 16:26:11 +0200 Subject: [PATCH] feat: :lipstick: update post list preview styling --- src/css/style.css | 2 +- src/posts.njk | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/css/style.css b/src/css/style.css index af03e9e..86b1d1d 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -52,7 +52,7 @@ code { font-family: var(--font-monospace); } -a:not(nav a, .button) { +a:not(nav a, .button, :has(h1)) { @apply font-normal text-inherit underline decoration-sky-600 decoration-2 underline-offset-4 transition-colors duration-300 hover:text-sky-600; } diff --git a/src/posts.njk b/src/posts.njk index af200f2..3dcfd88 100644 --- a/src/posts.njk +++ b/src/posts.njk @@ -12,28 +12,28 @@ pagination: --- {% for post in blogposts %} -
-

{{ post.data.title }}

+
+ +

{{ post.data.title }}

+
{%- from 'postmeta.macro.njk' import postmeta %} {{ postmeta({ date: post.date, author: post.data.author, content: post.content, center: false }) }}
{% if post.data.image and post.data.image.src != '' %} -
- {{ post.data.image.alt }} - {% if post.data.image and post.data.image.credit != '' %} -
- {{ post.data.image.credit }} -
- {% endif %} -
+ +
+ {{ post.data.image.alt }} + {% if post.data.image and post.data.image.credit != '' %} +
+ {{ post.data.image.credit }} +
+ {% endif %} +
+
{% endif %} {{ post.data.page.excerpt | safe }} - - - Read on {% lucide "chevron-right", { "class": "size-6 md:size-7 xl:size-8" } %} -
{% endfor %}