-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.php
79 lines (63 loc) · 2.43 KB
/
config.php
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
return [
/* ============================================
Blog Settings
============================================ */
// Posts per page
'posts_per_page' => 4,
// The direct URL to your blog without a trailing slash (e.g., https://adgr.dev or https://adgr.dev/blog)
'blog_url' => 'https://example.com',
// If your CMS installation is not in the web root,
// enter your folder name here with no preceding slash (e.g., 'blog')
'base_path' => '',
// The name of your blog
'blog_name' => 'Nicholas Demo',
// A short description of your blog
'blog_description' => 'Welcome to my amazing blog powered by Nicholas',
/* ============================================
Front-end Settings
============================================ */
// Use the front-end (true) or API-only (false)?
'use_frontend' => true,
// Front-end theme
'frontend_theme' => 'default',
// Date format
'date_format' => 'jS F Y',
// Page title separator
'title_separator' => '|',
/* ============================================
Advanced Settings
============================================ */
// Prepend year and month to post URLs to help avoid slug conflicts?
'post_base' => false,
/* ============================================
Custom Post Types
============================================ */
'post_types' => [
'pages' => [
'folder' => 'pages',
'slug_prefix' => '', // No prefix in URL
'date_prefix' => false,
'taxonomy' => null, // Pages don't have a taxonomy
],
'posts' => [
'folder' => 'posts',
'slug_prefix' => '', // No prefix in URL
'date_prefix' => true,
'taxonomy' => 'tag', // Taxonomy name for posts
],
'snippets' => [
'folder' => 'snippets',
'slug_prefix' => 'snippets', // 'snippets' prefix in URL
'date_prefix' => true,
'taxonomy' => 'snippet-tag', // Taxonomy name for snippets
],
// Example of another post type with custom taxonomy
// 'notes' => [
// 'folder' => 'notes',
// 'slug_prefix' => 'notes', // 'notes' prefix in URL
// 'date_prefix' => true,
// 'taxonomy' => 'note-tag', // Taxonomy name for notes
// ],
],
];