-
Notifications
You must be signed in to change notification settings - Fork 5
/
Config.js
68 lines (63 loc) · 1.36 KB
/
Config.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
const textColor = 'rgba(0,0,0,0.87)'
const baseStyle = {
marginHorizontal: 16,
marginBottom: 16,
color: textColor
}
const headingStyle = {
...baseStyle,
fontFamily: 'roboto-slab-regular',
fontWeight: 'normal'
}
const htmlStyles = {
h1: {
...headingStyle,
fontSize: 24
},
h2: { ...headingStyle, fontSize: 22 },
h3: { ...headingStyle, fontSize: 20 },
h4: { ...headingStyle, fontSize: 18 },
h5: { ...headingStyle, fontSize: 16 },
h6: { ...headingStyle, fontSize: 14 },
p: {
...baseStyle,
lineHeight: 20
},
blockquote: {
...baseStyle,
color: 'rgba(0,0,0,0.54)',
backgroundColor: '#f2f2f2',
fontFamily: 'droid-serif-italic',
fontStyle: 'italic',
padding: 16
},
ul: {
paddingLeft: 16
},
ol: {
paddingLeft: 16
}
}
const sanitizeOptions = {
allowedTags: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol',
'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br',
'pre', 'img' ],
allowedAttributes: {
a: [ 'href' ],
img: [ 'src' ]
}
}
export default {
apiUrl: 'https://demo.wp-api.org/wp-json/wp/v2',
showAuthors: true,
colorPrimary: '#34495e',
background: '#eee',
htmlStyles,
sanitizeOptions,
// https://developer.wordpress.org/rest-api/reference/posts/#arguments
sliderParams: {
per_page: 6,
tags: '27'
},
aboutPageId: 2
}