mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
cd690efad1
* 🐛 Dynamic Routing Beta: Shortform `author.foo` is not allowed refs #9601 - otherwise you get access to {{author}} in the theme, which is deprecated & causes errors - recommend not using {{author}} as data longform name in the yaml validator - (internal usage is still allowed) - also warn against using reserved data key names like filter, resource, limit etc - maybe remove this restriction later but seems like a sensible validation right now.
63 lines
1.2 KiB
JavaScript
63 lines
1.2 KiB
JavaScript
/* eslint-disable */
|
|
module.exports.QUERY = {
|
|
tag: {
|
|
alias: 'tags',
|
|
type: 'read',
|
|
resource: 'tags',
|
|
options: {
|
|
slug: '%s',
|
|
visibility: 'public'
|
|
}
|
|
},
|
|
author: {
|
|
internal: true,
|
|
alias: 'users',
|
|
type: 'read',
|
|
resource: 'users',
|
|
options: {
|
|
slug: '%s',
|
|
visibility: 'public'
|
|
}
|
|
},
|
|
user: {
|
|
alias: 'users',
|
|
type: 'read',
|
|
resource: 'users',
|
|
options: {
|
|
slug: '%s',
|
|
visibility: 'public'
|
|
}
|
|
},
|
|
post: {
|
|
alias: 'posts',
|
|
type: 'read',
|
|
resource: 'posts',
|
|
options: {
|
|
slug: '%s',
|
|
status: 'published',
|
|
page: 0
|
|
}
|
|
},
|
|
page: {
|
|
alias: 'pages',
|
|
type: 'read',
|
|
resource: 'posts',
|
|
options: {
|
|
slug: '%s',
|
|
status: 'published',
|
|
page: 1
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports.TAXONOMIES = {
|
|
tag: {
|
|
filter: 'tags:\'%s\'+tags.visibility:public',
|
|
editRedirect: '#/settings/tags/:slug/'
|
|
},
|
|
author: {
|
|
filter: 'authors:\'%s\'',
|
|
editRedirect: '#/team/:slug/'
|
|
}
|
|
};
|
|
/* eslint-enable */
|