-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathconstants.js
50 lines (47 loc) · 1.16 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* WordPress dependencies
*/
import { __, _x } from '@wordpress/i18n';
export const TEMPLATES_DEFAULT_DETAILS = {
// General
'front-page': {
title: _x( 'Front Page', 'template name' ),
description: __(
'Front page template, whether it displays the blog posts index or a static page'
),
},
archive: {
title: _x( 'Archive', 'template name' ),
description: __( 'Generic archive template' ),
},
singular: {
title: _x( 'Singular', 'template name' ),
description: __( 'Default template for both single posts and pages' ),
},
index: {
title: _x( 'Index', 'template name' ),
description: __( 'Default template' ),
},
search: {
title: _x( 'Search Results', 'template name' ),
description: __( 'Search results template' ),
},
'404': {
title: _x( '404 (Not Found)', 'template name' ),
description: __( 'Template for "not found" errors' ),
},
// Pages
page: {
title: __( 'Single Page' ),
description: __( 'Template for single pages' ),
},
// Posts
home: {
title: __( 'Home Page' ),
description: __( 'Template for the latest blog posts' ),
},
single: {
title: __( 'Single Post' ),
description: __( 'Template for single posts' ),
},
};