Add categories to stork config

This commit is contained in:
Sam Carlton 2022-05-18 12:34:02 -05:00
parent 63e8770746
commit e8a34741bc

View file

@ -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 ),