--- import { parseISO, format } from "date-fns"; import Layout from "@layouts/Layout.astro"; import AssociatedMedia from "@components/blocks/AssociatedMedia.astro"; import Warning from "@components/blocks/banners/Warning.astro"; import { fetchGlobalData } from "@utils/data/global/index.js"; import { md } from "@utils/helpers/general.js"; import icons from "@cdransf/astro-tabler-icons"; const { globals, show } = await fetchGlobalData(Astro, Astro.url.pathname); if (!show) return Astro.redirect("/404", 404); const { IconArrowLeft, IconHeart, IconNeedle, IconCircleCheck, } = icons; const pageTitle = `${show.title} / TV`; const description = show.description || `Details about ${show.title}.`; const alt = `${show.title} / ${show.year}`; ---
Back to watching
{alt}
{show.title} {show.year && ` (${show.year})`} { show.favorite && (
This is one of my favorite shows! ) } { show.tattoo && (
I have a tattoo inspired by this show! ) } { show.collected && (
This show is in my collection! ) } { show.episode?.formatted_episode && ( I last watched{" "} {show.episode.formatted_episode}{" "} on {format(parseISO(show.episode.last_watched_at), "PPPP")}. ) }
{show.review && ( <>

My thoughts

)} {show.description && ( <>

Overview

)}