feat: nerd unlocked blog and UI changes

This commit is contained in:
coolnsx
2025-05-18 14:59:34 +05:30
parent 7f7bbd5c33
commit 2b270be31a
6 changed files with 73 additions and 5 deletions

View File

@@ -15,7 +15,7 @@
{{ page.title }}
</h1>
<p class="subtitle text-blue-400"><strong>{{ page.date }}</strong></p>
<p class="subtitle text-blue-400"><strong>{{ page.date | date(format="%B %d, %Y") }}</strong></p>
{% if page.extra.image %}
{% set image = page.extra.image %}

View File

@@ -47,12 +47,24 @@
decoding="async"
/>
<div class="p-6">
<h2 class="text-2xl font-semibold text-white">
<div class="flex flex-col flex-grow p-6">
<!-- Title with min-height to reserve space for 2 lines -->
<h2 class="text-2xl font-semibold text-white min-h-[4.2rem] leading-snug">
{{ page.title }}
</h2>
<p class="subtitle text-blue-400 mt-2">{{ page.date }}</p>
<p class="text-gray-300 text-sm mt-3">{{ page.description }}</p>
<!-- Spacer pushes below content to the bottom -->
<div class="mt-auto">
<!-- Date -->
<p class="subtitle text-blue-400 mt-2">
{{ page.date | date(format="%B %d, %Y") }}
</p>
<!-- Description -->
<p class="text-gray-300 text-sm mt-3 line-clamp-3">
{{ page.description }}
</p>
</div>
</div>
</a>
{% endfor %}
@@ -69,6 +81,7 @@ document.addEventListener("DOMContentLoaded", function () {
const index = elasticlunr(function () {
this.addField("title");
this.addField("description");
this.addField("date");
this.setRef("id");
});

View File

@@ -0,0 +1 @@
<a href="{{ href }}" class="text-blue-400">{{ text }}</a>

View File

@@ -0,0 +1,4 @@
<hr class="border border-gray-800 my-4">
<h1 class="text-2xl md:text-3xl font-extrabold mb-8 text-center">
{{ text }}
</h1>