Post page clean up

This commit is contained in:
2023-07-01 20:50:21 +10:00
parent a0b7ad948f
commit 3e1999acfc

View File

@@ -41,16 +41,16 @@ article class="h-entry"
- if post.location - if post.location
img class="shadow-solid shadow-pink-100 dark:shadow-pink-200 rounded mb-4" src=post.large_map img class="shadow-solid shadow-pink-100 dark:shadow-pink-200 rounded mb-4" src=post.large_map
- if trip div class="mb-12"
div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 flex gap-4" - if trip
div class="block grow bg-orange-100 dark:bg-orange-600 rounded px-4 py-2 mb-12" div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 flex gap-4"
a href="/trips/#{trip.id}" a href="/trips/#{trip.id}" class="block grow bg-orange-100 hover:bg-orange-200 dark:bg-orange-600 hover:dark:bg-orange-900 rounded px-4 py-2 mb-2"
= "✈️ Part of the trip: " span class="pr-8"✈️
= "Part of the trip: "
strong #{trip.name} strong #{trip.name}
| → - if post.tags.map(&:label).include? "weekly"
- if post.tags.map(&:label).include? "weekly" div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 flex gap-4"
div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 flex gap-4" div class="grow" hx-get="/post/top_tracks/#{post.slug}" hx-trigger="load"
div class="grow" hx-get="/post/top_tracks/#{post.slug}" hx-trigger="load"
- if past_movies.count > 0 - if past_movies.count > 0
div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 mb-4" div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 mb-4"