forked from discourse/discourse-welcome-link-banner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.yml
97 lines (79 loc) · 2.16 KB
/
settings.yml
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
show_on:
default: discovery
type: enum
choices:
- discovery
- homepage
- all
description: discovery refers to topic list pages
banner_links:
default: >-
[{"icon":"info-circle","text":"about this site","url":"/faq"},
{"icon":"user-friends","text":"meet our staff","url":"/about"},
{"icon":"star","text":"your preferences","url":"/my/preferences"}]
json_schema: '{ "type": "array", "format": "table", "uniqueItems": true, "items": { "type": "object", "properties": { "icon": { "type": "string", "minLength": 1 }, "text": { "type": "string", "minLength": 1 }, "url": { "type": "string" } }, "additionalProperties": false } }'
max_trust_level:
type: integer
default: 1
max: 5
description: Show for this trust level and below; set 5 for all
hide_for_staff:
default: false
hide_on_mobile:
default: false
hide_for_anon:
default: false
description: hide the banner for logged-out users
can_be_dismissed:
default: true
description: allow users to dismiss the banner (per device)
banner_background_image:
type: upload
default: ""
mobile_banner_background_image:
type: upload
default: ""
banner_background_repeat:
type: enum
default: no-repeat
choices:
- no-repeat
- repeat
- repeat-x
- repeat-y
banner_background_size:
type: string
default: cover
description: uses <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-size">CSS background size property</a>
banner_background_color:
type: string
default: "var(--tertiary-low)"
banner_box_background_color:
type: string
default: "var(--secondary)"
banner_text_color:
type: string
default: "var(--primary)"
banner_icon_color:
type: string
default: "var(--primary-high)"
banner_link_color:
type: string
default: "var(--tertiary)"
svg_icons:
default: "user-friends"
type: "list"
list_type: "compact"
layout:
default: "text-left"
type: "enum"
choices:
- "text-left"
- "text-top"
plugin_outlet:
default: "below-site-header"
type: "enum"
choices:
- "below-site-header"
- "above-main-container"
description: changes the banner position, use "above-main-container" if you have the sidebar enabled