/
frontity.settings.js
60 lines (60 loc) · 1.73 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
export default {
name: "twentytwenty-theme-example",
state: {
frontity: {
url: "https://twentytwenty.frontity.org",
title: "Test Frontity Blog",
description: "Useful content for Frontity development"
}
},
packages: [
"@frontity/tiny-router",
"@frontity/html2react",
{
name: "@frontity/twentytwenty-theme",
state: {
theme: {
menu: [
["Home", "/"],
["Nature", "/category/nature/"],
["Travel", "/category/travel/"],
["Japan", "/tag/japan/"],
["About Us", "/about-us/"]
],
colors: {
primary: "#E6324B",
headerBg: "#ffffff",
footerBg: "#ffffff",
bodyBg: "#f5efe0"
},
// 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: {
api: "https://test.frontity.io/wp-json"
}
}
}
]
};