mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add categories to stork config
This commit is contained in:
parent
63e8770746
commit
e8a34741bc
1 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ import {
|
||||||
import {
|
import {
|
||||||
getRouteType
|
getRouteType
|
||||||
} from '~/helpers/app-derived.js'
|
} from '~/helpers/app-derived.js'
|
||||||
|
import {
|
||||||
|
getAppCategory
|
||||||
|
} from '~/helpers/categories.js'
|
||||||
import {
|
import {
|
||||||
storkTomlPath,
|
storkTomlPath,
|
||||||
} from '~/helpers/stork/config.js'
|
} from '~/helpers/stork/config.js'
|
||||||
|
|
@ -53,6 +56,7 @@ function makeDetailsFromListing ({ listing, route }) {
|
||||||
return [
|
return [
|
||||||
listing.content || '∅', // Null Symbol
|
listing.content || '∅', // Null Symbol
|
||||||
has( listing, 'status' ) ? `status_${ listing.status }` : '',
|
has( listing, 'status' ) ? `status_${ listing.status }` : '',
|
||||||
|
has( listing, 'category' ) ? `category_${ getAppCategory( listing ).snakeSlug }` : '',
|
||||||
`type_${ getRouteType( route ) }`,
|
`type_${ getRouteType( route ) }`,
|
||||||
// Brownmatter
|
// Brownmatter
|
||||||
matter.stringify( '', contents ),
|
matter.stringify( '', contents ),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue