forked from nolosb/discourse-featured-cards
-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.yml
92 lines (91 loc) · 1.84 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
cards_height:
type: integer
default: 350
description: "Height in px for Desktop view. Mobile will wrap card content"
cards_min_width:
type: float
default: 0.75
description: "Minimun height/width ratio for Desktop view. Mobile shows full width"
cards_max_width:
type: float
default: 0.75
description: "Maximum height/width ratio for Desktop view. Mobile shows full width"
image_resize:
type: enum
default: "cover"
choices:
- contain
- cover
- fill
- scale-down
- none
description: "How topic thumbnails should be resized to fit the cards."
corner_radius:
type: integer
default: 4
show_tag:
type: bool
default: true
show_image:
type: bool
default: true
show_category_link:
type: bool
default: true
show_title:
type: bool
default: true
show_excerpt:
type: bool
default: false
show_author:
type: bool
default: true
maximum_topic_count: 4
randomize_topics: true
featured_category:
type: integer
default: 0
featured_tags:
type: list
list_type: tag
default: "featured"
topic_source:
type: enum
default: "latest"
choices:
- latest
- top/all
- top/yearly
- top/quarterly
- top/monthly
- top/weekly
- top/daily
show_component_heading:
default: true
heading_text:
default: "Featured Cards"
display_mobile: true
show_on:
default: homepage
type: enum
choices:
- homepage
- top_menu
- all
description: top_menu refers to the <a href="/admin/site_settings/category/all_results?filter=top_menu">top menu site setting</a>
plugin_outlet:
type: enum
default: "above-main-container"
choices:
- "above-main-container"
- "below-site-header"
- "discovery-list-container-top"
description: "Advanced layout setting"
sort_by:
type: enum
default: "views"
choices:
- views
- likes
description: "choose a parameter to sort the cards"