diff --git a/src/components/default-listing.astro b/src/components/default-listing.astro index f23ce77..bcc31fd 100644 --- a/src/components/default-listing.astro +++ b/src/components/default-listing.astro @@ -7,6 +7,7 @@ import { import Aliases from '~/src/components/listing-parts/aliases.astro' import RelatedLinks from '~/src/components/listing-parts/related-links.astro' +import RelatedVideos from '~/src/components/listing-parts/related-videos.astro' import AllUpdatesSubscribe from '~/components/all-updates-subscribe.vue' @@ -47,9 +48,9 @@ const details = new ListingDetails( listing ) /> - + diff --git a/src/components/listing-parts/related-videos.astro b/src/components/listing-parts/related-videos.astro new file mode 100644 index 0000000..5020df0 --- /dev/null +++ b/src/components/listing-parts/related-videos.astro @@ -0,0 +1,23 @@ +--- +import Heading from './heading.astro' +import VideoRow from '~/src/components/video/row.astro' + +const { + listing +} = Astro.props + +const hasRelatedVideos = listing.relatedVideos.length > 0 + +--- + +