From c91632aa8ed320e094a67e8702c86c925841b19e Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 9 Jun 2024 20:08:14 +1000 Subject: [PATCH] Remove excerpts from post previews --- slices/main/templates/shared/_post.html.slim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/slices/main/templates/shared/_post.html.slim b/slices/main/templates/shared/_post.html.slim index d08c23f..25394df 100644 --- a/slices/main/templates/shared/_post.html.slim +++ b/slices/main/templates/shared/_post.html.slim @@ -1,15 +1,15 @@ div class="mb-8 h-entry" - h3 class="text-xl text-blue-500 dark:text-indigo-300 mb-2" + h3 class="text-l text-blue-500 dark:text-indigo-300 mb-2" a class="u-url hover:text-blue-900 hover:dark:text-blue-400" href="/post/#{post.slug}" = post.display_title - div class="e-content prose-p:mb-0 prose-img:my-2 prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline p-name text-base prose prose-ul:list-none prose-ul:pl-0 prose-li:pl-0 text-gray-800 dark:text-gray-200 prose-a:dark:text-gray-100" - == post.excerpt - div class="grid gap-4 grid-flow-row grid-cols-#{post.photos.count} grid-rows-1" - -post.photos.each do |photo| - img loading="lazy" class="w-44 h-44 object-cover rounded" src=photo["value"] + / div class="e-content prose-p:mb-0 prose-img:my-2 prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline p-name text-base prose prose-ul:list-none prose-ul:pl-0 prose-li:pl-0 text-gray-800 dark:text-gray-200 prose-a:dark:text-gray-100" + / == post.excerpt + / div class="grid gap-4 grid-flow-row grid-cols-#{post.photos.count} grid-rows-1" + / -post.photos.each do |photo| + / img loading="lazy" class="w-44 h-44 object-cover rounded" src=photo["value"] / == render "shared/tags", tags: post.tags - p class="text-sm text-blue-400 dark:text-indigo-400" + p class="text-sm text-blue-900 dark:text-indigo-200" a class="u-url" href="#{post.permalink}" time class="dt-published" datetime=post.machine_published_at = post.display_published_at