From 32bb14cc48f62fb2643a8371c826470050f9bbcd Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Mon, 22 Apr 2024 21:16:33 +1000 Subject: [PATCH] Fix syndication things --- slices/main/templates/layouts/app.html.slim | 2 +- slices/main/templates/shared/_blue_sky.html.slim | 3 ++- slices/main/templates/site/home.html.slim | 3 --- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/slices/main/templates/layouts/app.html.slim b/slices/main/templates/layouts/app.html.slim index 2176ff1..304e749 100644 --- a/slices/main/templates/layouts/app.html.slim +++ b/slices/main/templates/layouts/app.html.slim @@ -63,7 +63,7 @@ html x-data="{darkMode: $persist(false)}" :class="{'dark' : darkMode === true}" a class="transition-colors p-1 rounded hover:bg-emerald-100 hover:text-emerald-400 dark:hover:bg-emerald-800 #{context.current_path.start_with?('/post') ? 'text-emerald-400 bg-emerald-50 dark:bg-emerald-900 dark:text-emerald-400' : 'text-gray-400'}" href="/posts" Writing span class="text-gray-400 dark:text-gray-600" = "/" - a class="transition-colors p-1 rounded hover:bg-blue-100 hover:text-blue-400 dark:hover:bg-blue-800 #{context.current_path.start_with?('/post') ? 'text-blue-400 bg-blue-50 dark:bg-blue-900 dark:text-blue-400' : 'text-gray-400'}" href="/statuses" Statuses + a class="transition-colors p-1 rounded hover:bg-blue-100 hover:text-blue-400 dark:hover:bg-blue-800 #{context.current_path.start_with?('/statuses') ? 'text-blue-400 bg-blue-50 dark:bg-blue-900 dark:text-blue-400' : 'text-gray-400'}" href="/statuses" Statuses span class="text-gray-400 dark:text-gray-600" = "/" a class="transition-colors p-1 rounded hover:bg-lime-100 hover:text-lime-400 dark:hover:bg-lime-800 #{context.current_path.start_with?('/more') ? 'text-lime-400 bg-lime-50 dark:bg-lime-900 dark:text-lime-400' : 'text-gray-400'}" href="/more" More diff --git a/slices/main/templates/shared/_blue_sky.html.slim b/slices/main/templates/shared/_blue_sky.html.slim index 16a98c1..7035c69 100644 --- a/slices/main/templates/shared/_blue_sky.html.slim +++ b/slices/main/templates/shared/_blue_sky.html.slim @@ -1,2 +1,3 @@ - w_class = defined?(width) ? width : "w-6" - +svg class="mt-0.5 mr-1 fill-blue-100 hover:fill-blue-400 #{w_class}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" + path d="M407.8 294.7c-3.3-.4-6.7-.8-10-1.3c3.4 .4 6.7 .9 10 1.3zM288 227.1C261.9 176.4 190.9 81.9 124.9 35.3C61.6-9.4 37.5-1.7 21.6 5.5C3.3 13.8 0 41.9 0 58.4S9.1 194 15 213.9c19.5 65.7 89.1 87.9 153.2 80.7c3.3-.5 6.6-.9 10-1.4c-3.3 .5-6.6 1-10 1.4C74.3 308.6-9.1 342.8 100.3 464.5C220.6 589.1 265.1 437.8 288 361.1c22.9 76.7 49.2 222.5 185.6 103.4c102.4-103.4 28.1-156-65.8-169.9c-3.3-.4-6.7-.8-10-1.3c3.4 .4 6.7 .9 10 1.3c64.1 7.1 133.6-15.1 153.2-80.7C566.9 194 576 75 576 58.4s-3.3-44.7-21.6-52.9c-15.8-7.1-40-14.9-103.2 29.8C385.1 81.9 314.1 176.4 288 227.1z" diff --git a/slices/main/templates/site/home.html.slim b/slices/main/templates/site/home.html.slim index 7a693c0..f19e4ff 100644 --- a/slices/main/templates/site/home.html.slim +++ b/slices/main/templates/site/home.html.slim @@ -15,9 +15,6 @@ div class="mb-8 max-w-screen-md mx-auto border-t border-solid border-gray-200 da img loading="lazy" class="float-start max-w-32 rounded mr-2" src=latest_status.key_image p == latest_status.raw_content - - latest_status.syndicated_to.each do |loc| - small class="text-fuchsia-900 dark:text-fuchsia-300" - a rel="syndication" class="u-syndication" href=loc[:url] Read on #{loc[:location]} a class="col-span-7 sm:col-span-1 px-2 text-center transition-colors rounded bg-fuchsia-50 hover:bg-fuchsia-200 dark:bg-fuchsia-900 dark:hover:bg-fuchsia-700 inline-block grid content-center max-h-12 my-auto" href="/statuses" p See all