From ec4153c0f12d83a14cf73c00a5d22ae579eb42e7 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Fri, 1 Jul 2022 13:07:14 -0500 Subject: [PATCH] Show Codeable for developer tools apps --- src/components/default-listing.astro | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/default-listing.astro b/src/components/default-listing.astro index 1e4d452..d9caf12 100644 --- a/src/components/default-listing.astro +++ b/src/components/default-listing.astro @@ -31,6 +31,17 @@ const { const details = new ListingDetails( listing ) + +const adName = (() => { + // Games + if ( details.isGame ) return 'new-world-1' + + // Developer Tools + if ( listing?.category?.slug === 'developer-tools' ) return 'codeable-1' + + return 'default' +})() + ---
@@ -65,7 +76,7 @@ const details = new ListingDetails( listing )