-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfrontity.settings.js
96 lines (93 loc) · 2.91 KB
/
frontity.settings.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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
const settings = {
name: "primitivedigital",
state: {
frontity: {
url: "https://primitivedigital.uk",
title: "Primitive Digital",
description: "WordPress Web Sites & Apps",
name: "Want a Website?"
}
},
packages: [
{
name: "frontstrap",
state: {
theme: {
menu: [
["Home", "/"],
["Design", "/web-design"],
["Development", "/web-development"],
["Data", "/data-insights"],
["Marketing", "/marketing"],
["A Nice Log", "/blog"]
],
menufooter: [
["Contact", "/contact"],
["Startup Offers", "/darwin-project"],
["Adventures in Time", "/timelines"],
["The Cave of Wonders", "/cave"],
["Primitive Theme for Frontity", "https://www.npmjs.com/package/primitive-theme"],
["Privacy Policy", "privacy-policy"]
],
featured: {
"showOnList": true,
"showOnPost": true,
"showOnPage": true,
},
// tbc
archive: {
"showExcerpt": true
}
}
}
},
{
name: "@frontity/google-analytics",
state: {
"googleAnalytics": {
"trackingIds": ['UA-61815763-1']
},
},
},
{
name: "@frontity/wp-source",
state: {
source: {
api: "https://primitivedigital.uk/wp-json", // required: Your WP REST API EndPoint (no trailing slash)
homepage: "/home", // optional: set when using a page as the site homepage (wp hp settings ignored)
postsPage: "/blog", // optional: set when using a page as the site homepage
// optional: define CPTs
postTypes: [
{
type: "works", // custom post type slug
endpoint: "works", // WP REST API endpoint
archive: "/works" // router link: do i want to use this?
},
{
type: "temporal_events", // custom post type slug
endpoint: "temporal_events", // WP REST API endpoint
archive: "/evolution-of-digital-stuff" // router link: list view of these custom post types
},
{
type: "things", // custom post type slug
endpoint: "things", // WP REST API endpoint
archive: "/things" // router link: list view of these custom post types
}
],
taxonomies: [
{
taxonomy: "timelines", // custom taxonomy slug
endpoint: "timelines", // WP REST API endpoint
postTypeEndpoint: "/temporal_events", // endpoint for (custom) post types to query
}
]
}
}
},
"@frontity/tiny-router",
"@frontity/html2react",
"@frontity/yoast",
"@aamodtgroup/frontity-contact-form-7"
]
};
export default settings;