From e8a34741bc07c68fb2cfa62f1421a0f3480ebfd2 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Wed, 18 May 2022 12:34:02 -0500 Subject: [PATCH] Add categories to stork config --- helpers/stork/toml.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helpers/stork/toml.js b/helpers/stork/toml.js index 9a0de03..384d933 100644 --- a/helpers/stork/toml.js +++ b/helpers/stork/toml.js @@ -12,6 +12,9 @@ import { import { getRouteType } from '~/helpers/app-derived.js' +import { + getAppCategory +} from '~/helpers/categories.js' import { storkTomlPath, } from '~/helpers/stork/config.js' @@ -53,6 +56,7 @@ function makeDetailsFromListing ({ listing, route }) { return [ listing.content || '∅', // Null Symbol has( listing, 'status' ) ? `status_${ listing.status }` : '', + has( listing, 'category' ) ? `category_${ getAppCategory( listing ).snakeSlug }` : '', `type_${ getRouteType( route ) }`, // Brownmatter matter.stringify( '', contents ),