From 8ee6b911a233e4de3e31587f3973ce47949ebc92 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Fri, 1 Jul 2022 13:13:16 -0500 Subject: [PATCH] Add Codeable to Developer Tools lists --- src/pages/kind/[...kindPath].astro | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/kind/[...kindPath].astro b/src/pages/kind/[...kindPath].astro index 431454c..5491bb7 100644 --- a/src/pages/kind/[...kindPath].astro +++ b/src/pages/kind/[...kindPath].astro @@ -69,6 +69,14 @@ if ( !!categorySlug ) { pageLabel = category?.pluralLabel || category.label } +const adName = (() => { + if ( kindName === 'game' ) return 'new-world-1' + + if ( kindName === 'developer-tools' ) return 'codeable-1' + + return 'default' +})() + ---