diff --git a/src/components/default-listing.astro b/src/components/default-listing.astro index d79b20a..b2870da 100644 --- a/src/components/default-listing.astro +++ b/src/components/default-listing.astro @@ -6,9 +6,16 @@ import { } from '~/helpers/listing-page.js' import Aliases from '~/src/components/listing/aliases.astro' +import RelatedLinks from '~/src/components/listing/related-links.astro' import AllUpdatesSubscribe from '~/components/all-updates-subscribe.vue' +import { makeLastUpdatedFriendly } from '~/helpers/parse-date' +import { getAppEndpoint } from '~/helpers/app-derived.js' + +import LinkButton from '~/components/link-button.vue' +import VideoRow from '~/components/video/row.vue' + const { listing @@ -19,7 +26,7 @@ const details = new ListingDetails( listing ) ---
-
+

{ details.mainHeading }

@@ -30,11 +37,16 @@ const details = new ListingDetails( listing ) - + + diff --git a/src/components/listing/related-links.astro b/src/components/listing/related-links.astro new file mode 100644 index 0000000..7982f8b --- /dev/null +++ b/src/components/listing/related-links.astro @@ -0,0 +1,22 @@ +--- +const { + listing +} = Astro.props + +--- +{ listing.relatedLinks.map( (link, i) => { + + const notAppTestLink = !link.label.includes('🧪') + + const isMainLink = (i === 0) && notAppTestLink + + return ( + { isMainLink ? 'View' : link.label } + ) +} ) }