mirror of
https://github.com/discourse/discourse-custom-header-links.git
synced 2025-03-09 14:18:22 +00:00
70 lines
1.4 KiB
YAML
70 lines
1.4 KiB
YAML
custom_header_links:
|
|
type: objects
|
|
default:
|
|
- text: "External link"
|
|
title: "This link will open in a new tab"
|
|
url: "https://meta.discourse.org"
|
|
view: "vdo"
|
|
target: "blank"
|
|
hide_on_scroll: "remove"
|
|
- text: "Most Liked"
|
|
title: "Posts with the most amount of likes"
|
|
url: "/latest/?order=op_likes"
|
|
view: "vdo"
|
|
target: "self"
|
|
hide_on_scroll: "keep"
|
|
- text: "Privacy"
|
|
title: "Our Privacy Policy"
|
|
url: "/privacy"
|
|
view: "vdm"
|
|
target: "self"
|
|
hide_on_scroll: "keep"
|
|
schema:
|
|
name: "link"
|
|
properties:
|
|
text:
|
|
type: string
|
|
required: true
|
|
validations:
|
|
min_length: 1
|
|
max_length: 100
|
|
title:
|
|
type: string
|
|
required: true
|
|
validations:
|
|
min_length: 1
|
|
max_length: 1000
|
|
url:
|
|
type: string
|
|
required: true
|
|
validations:
|
|
min_length: 1
|
|
max_length: 2048
|
|
url: true
|
|
view:
|
|
type: enum
|
|
choices:
|
|
- vdm
|
|
- vdo
|
|
- vmo
|
|
target:
|
|
type: enum
|
|
choices:
|
|
- blank
|
|
- self
|
|
hide_on_scroll:
|
|
type: enum
|
|
choices:
|
|
- remove
|
|
- keep
|
|
default: keep
|
|
locale:
|
|
type: string
|
|
|
|
links_position:
|
|
default: right
|
|
type: enum
|
|
choices:
|
|
- right
|
|
- left
|