refactor(resource): drop aksrt_resource CPT residue, post+meta only
This commit is contained in:
@@ -110,7 +110,7 @@ export const MODULE_LIBRARY = [
|
||||
label: '排行榜',
|
||||
icon: 'trophy',
|
||||
desc: '按下载量 / 阅读量 / 评论数排序',
|
||||
defaultConfig: { metric: 'downloads', count: 6, post_type: 'aksrt_resource', title: '' },
|
||||
defaultConfig: { metric: 'downloads', count: 6, post_type: 'resource', title: '' },
|
||||
fields: [
|
||||
{ key: 'title', type: 'text', label: '标题' },
|
||||
{
|
||||
@@ -124,7 +124,7 @@ export const MODULE_LIBRARY = [
|
||||
{
|
||||
key: 'post_type', type: 'select', label: '内容类型',
|
||||
options: [
|
||||
{ label: '资源', value: 'aksrt_resource' },
|
||||
{ label: '资源', value: 'resource' },
|
||||
{ label: '文章', value: 'post' },
|
||||
],
|
||||
},
|
||||
@@ -143,7 +143,7 @@ export const MODULE_LIBRARY = [
|
||||
key: 'post_type', type: 'select', label: '内容类型',
|
||||
options: [
|
||||
{ label: '文章', value: 'post' },
|
||||
{ label: '资源', value: 'aksrt_resource' },
|
||||
{ label: '资源', value: 'resource' },
|
||||
],
|
||||
},
|
||||
{ key: 'count', type: 'number', label: '数量', min: 1, max: 20 },
|
||||
@@ -212,7 +212,7 @@ export const MODULE_LIBRARY = [
|
||||
key: 'post_type', type: 'select', label: '内容类型',
|
||||
options: [
|
||||
{ label: '文章', value: 'post' },
|
||||
{ label: '资源', value: 'aksrt_resource' },
|
||||
{ label: '资源', value: 'resource' },
|
||||
],
|
||||
},
|
||||
],
|
||||
@@ -482,8 +482,8 @@ export const PRESET_TEMPLATES = [
|
||||
modules: [
|
||||
{ type: 'hero', config: {} },
|
||||
{ type: 'tabs', config: { count: 8, layout: 'grid-cms' } },
|
||||
{ type: 'recent', config: { post_type: 'aksrt_resource', count: 8, layout: 'grid-cms' } },
|
||||
{ type: 'ranking', config: { metric: 'downloads', post_type: 'aksrt_resource', count: 6 } },
|
||||
{ type: 'recent', config: { post_type: 'resource', count: 8, layout: 'grid-cms' } },
|
||||
{ type: 'ranking', config: { metric: 'downloads', post_type: 'resource', count: 6 } },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Resource Archive · /resources
|
||||
*
|
||||
* 仅在 is_post_type_archive('aksrt_resource') 时加载。
|
||||
* 仅在 aksrt_is_resource_archive() 时加载。
|
||||
*/
|
||||
|
||||
.content-shell--cms {
|
||||
|
||||
Reference in New Issue
Block a user