-
Notifications
You must be signed in to change notification settings - Fork 19
/
frontity.settings.js
137 lines (137 loc) · 3.88 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
const settings = [
{
name: "frontity-org",
match: ["(\\?|&)post_type=\\w+"],
state: {
frontity: {
url: "https://frontity.org",
title: "Frontity",
description: "The React framework for WordPress",
},
source: {
url: "https://frontity.org",
},
},
packages: [
{
name: "frontity-cookieyes",
state: { cookieyes: { id: "55f4be1c19ac371f8f42d9ea" } },
},
{
name: "@frontity/frontity-org-theme",
state: { theme: { autoPrefetch: "in-view" } },
},
{
name: "@frontity/wp-source",
state: {
source: {
postTypes: [
{
type: "/blog",
endpoint: "template-parts",
},
{
type: "partner",
endpoint: "partner",
},
],
homepage: "/homepage/",
postsPage: "/blog/",
},
},
},
"@frontity/tiny-router",
"@frontity/html2react",
{
name: "@frontity/yoast",
state: { yoast: { renderTags: "server" } },
},
{
name: "@frontity/google-tag-manager-analytics",
state: { googleTagManagerAnalytics: { containerId: "GTM-NDGDFKR" } },
},
"frontity-contact-form-7",
],
},
{
name: "blog-frontity",
match: ["https?:\\/\\/[^/]+\\/blog([^-\\w]|$)", "(\\?|&)p=\\d+"],
state: {
frontity: {
url: "https://frontity.org",
title: "Frontity Blog",
description: "The React framework for WordPress",
},
source: {
url: "https://frontity.org",
},
},
packages: [
{
name: "frontity-cookieyes",
state: { cookieyes: { id: "55f4be1c19ac371f8f42d9ea" } },
},
{
name: "@frontity/twentytwenty-theme",
state: {
theme: {
menu: [
["Frontity", "https://frontity.org"],
["Community", "https://community.frontity.org"],
["Docs", "https://docs.frontity.org"],
["GitHub", "https://github.com/frontity/frontity"],
["Twitter", "https://twitter.com/frontity"],
],
colors: {
primary: "#0f1c64",
headerBg: "#ffffff",
footerBg: "#ffffff",
bodyBg: "#f2f3fc",
},
// Whether to show the search button in page header
showSearchInHeader: true,
// Whether to show all post content or only excerpt (summary) in archive view
showAllContentOnArchive: false,
// Settings for the featured media (image or video)
featuredMedia: {
// Whether to show it on archive view
showOnArchive: true,
// Whether to show it on post
showOnPost: true,
},
// Whether to auto-fetch links on a page. Values can be "no" | "all" | "in-view" | "hover"
autoPreFetch: "hover",
/**
* At the moment, we only include the ascii characters of Inter font.
* Values can be "us-ascii" | "latin" | "all"
*/
fontSets: "us-ascii",
},
},
},
{
name: "@frontity/wp-source",
state: {
source: {
homepage: "/homepage/",
postsPage: "/blog",
categoryBase: "/blog/category",
tagBase: "/blog/tag",
authorBase: "/blog/author",
},
},
},
"@frontity/tiny-router",
"@frontity/html2react",
{
name: "@frontity/yoast",
state: { yoast: { renderTags: "server" } },
},
{
name: "@frontity/google-tag-manager-analytics",
state: { googleTagManagerAnalytics: { containerId: "GTM-NDGDFKR" } },
},
],
},
];
export default settings;