From 9dad3d88ce3dace0c2b0084844c073f505e995d8 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Fri, 26 Jan 2024 10:57:15 +1100 Subject: [PATCH] Some cleanup --- app/templates/bookmarks/show.html.slim | 2 +- app/templates/site/home.html.slim | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/templates/bookmarks/show.html.slim b/app/templates/bookmarks/show.html.slim index b7bc089..449d42e 100644 --- a/app/templates/bookmarks/show.html.slim +++ b/app/templates/bookmarks/show.html.slim @@ -14,7 +14,7 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark: == bookmark.content - unless bookmark.cached_content.nil? - button class="hover:text-gray-400" @click="open = ! open" Toggle reader version + button class="hover:text-gray-400" @click="open = ! open" Toggle cached version span x-show="open" div class="mt-4 rounded bg-blue-50 dark:bg-blue-900 px-4 py-2" diff --git a/app/templates/site/home.html.slim b/app/templates/site/home.html.slim index 7384f1c..8faa5ff 100644 --- a/app/templates/site/home.html.slim +++ b/app/templates/site/home.html.slim @@ -7,8 +7,6 @@ div class="h-card prose dark:prose-invert mb-12 prose-a:decoration-wavy hover:pr div class="mb-8 max-w-screen-md mx-auto border-t border-solid border-gray-200 dark:border-gray-600" - if latest_status - div class="mb-2 flex max-w-prose mx-auto text-gray-600 dark:text-gray-200" - p Latest status div class="h-entry mb-12 p-2 grid grid-cols-7 gap-4 min-h-16 max-w-prose mx-auto bg-fuchsia-100 dark:bg-fuchsia-800 dark:text-gray-200 rounded" div class="col-span-7 sm:col-span-6 text-left" a class="u-url block my-auto hover:underline decoration-wavy" href=latest_status.permalink @@ -31,16 +29,16 @@ div class="mb-12 max-w-prose mx-auto bg-gray-100 rounded p-2 dark:bg-gray-900 da a class="hover:underline decoration-wavy" href="/post/#{post.slug}" = post.name div class="flex justify-between max-w-prose mx-auto mb-2" - h2 class="text-l text-gray-600 dark:text-gray-200" 📯 Posts - a class="rounded px-2 text-blue-600 bg-blue-100 dark:bg-blue-900/60 hover:dark:bg-blue-800 hover:dark:text-blue-100 dark:text-blue-200 hover:text-blue-600 hover:bg-blue-200" href="/posts" See all → + h2 class="text-xl text-gray-600 dark:text-gray-200" 📯 Posts + a class="rounded px-2 h-6 text-blue-600 bg-blue-100 dark:bg-blue-900/60 hover:dark:bg-blue-800 hover:dark:text-blue-100 dark:text-blue-200 hover:text-blue-600 hover:bg-blue-200" href="/posts" See all → div class="h-feed mb-12 max-w-prose mx-auto" - posts.each do |post| == render "shared/post", post: post div class="flex justify-between max-w-prose mx-auto mb-2" - h2 class="text-l text-gray-600 dark:text-gray-200" 📸 Photos - a class="rounded px-2 text-blue-600 bg-blue-100 dark:bg-blue-900/60 hover:dark:bg-blue-800 hover:dark:text-blue-100 dark:text-blue-200 hover:text-blue-600 hover:bg-blue-200" href="/photos" See all → + h2 class="text-xl text-gray-600 dark:text-gray-200" 📸 Photos + a class="rounded px-2 h-6 text-blue-600 bg-blue-100 dark:bg-blue-900/60 hover:dark:bg-blue-800 hover:dark:text-blue-100 dark:text-blue-200 hover:text-blue-600 hover:bg-blue-200" href="/photos" See all → div class="grid grid-cols-3 gap-4 max-w-prose mx-auto" - photo_posts.each do |post|