-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site Editor: Navigation templates (#25739)
- Loading branch information
1 parent
029b1d3
commit aae9404
Showing
21 changed files
with
557 additions
and
439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
packages/edit-site/src/components/left-sidebar/navigation-panel/constants.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
export const TEMPLATES_DEFAULT_DETAILS = { | ||
// General | ||
'front-page': { | ||
title: 'Front page', | ||
description: '', | ||
}, | ||
archive: { | ||
title: 'Archive', | ||
description: | ||
'Displays the content lists when no other template is found', | ||
}, | ||
single: { | ||
title: 'Single', | ||
description: 'Displays the content of a single post', | ||
}, | ||
singular: { | ||
title: 'Singular', | ||
description: 'Displays the content of a single page', | ||
}, | ||
index: { | ||
title: 'Default (index)', | ||
description: 'Displays the content of a single page', | ||
}, | ||
search: { | ||
title: 'Search results', | ||
description: '', | ||
}, | ||
'404': { | ||
title: '404', | ||
description: 'Displayed when a non-existing page requested', | ||
}, | ||
|
||
// Pages | ||
page: { | ||
title: 'Default (Page)', | ||
description: 'Displays the content of a single page', | ||
}, | ||
|
||
// Posts | ||
home: { | ||
title: 'Posts (home)', | ||
description: 'Displayed on your homepage', | ||
}, | ||
'archive-post': { | ||
title: 'Default (Post archive)', | ||
description: 'Displays a list of posts', | ||
}, | ||
'single-post': { | ||
title: 'Default (Single post)', | ||
description: 'Displays the content of a single post', | ||
}, | ||
}; | ||
|
||
export const TEMPLATES_GENERAL = [ | ||
'front-page', | ||
'archive', | ||
'single', | ||
'singular', | ||
'index', | ||
'search', | ||
'404', | ||
]; | ||
|
||
export const TEMPLATES_POSTS = [ 'single-post', 'archive-post', 'home' ]; |
Oops, something went wrong.