-
Notifications
You must be signed in to change notification settings - Fork 2
/
blueprints.yaml
99 lines (97 loc) · 3.44 KB
/
blueprints.yaml
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
98
99
name: Stamp
slug: stamp
type: plugin
version: 1.0.5
description: Automatically adds or modifies the date, date_modified, author, editor, revision and taxonomy.author to frontmatter when a page is saved via the Grav Admin Plugin. Optionally adds Twig variable users which contains data from user accounts.
icon: save
author:
name: Vít Petira
email: [email protected]
url: https://www.grav.cz
homepage: https://github.com/petira/grav-plugin-stamp
demo: https://www.grav.cz/blog
keywords: grav, plugin, auto, date, modified, author, editor, revision, taxonomy, frontmatter, petira
bugs: https://github.com/petira/grav-plugin-stamp/issues
docs: https://github.com/petira/grav-plugin-stamp/blob/develop/README.md
license: MIT
dependencies:
- { name: grav, version: '>=1.6.0' }
form:
validation: strict
fields:
enabled:
type: toggle
label: Plugin status
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
twig:
type: toggle
label: Twig variables
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
help: Makes available Twig variables that can be used in page templates or directly processed in pages via Twig
override:
type: toggle
label: Override behavior
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
validate:
type: bool
help: If the value of the revision variable is set to 'new', it provides the same behavior as when a page is first saved via the Grav Admin Plugin
name:
type: select
size: large
label: Name format
default: full
options:
full: Full name
user: Username
help: Choice between using a full name (for direct display, e.g. 'Joe Doe', backward compatibility with previous versions of the Stamp Plugin and a stable version of the Auto Author Plugin) and a username (for further processing, e.g. 'admin')
date:
type: select
size: large
label: Date action
default: add
options:
none: None
add: Add (If the date exist, it will not be executed)
both: Modify (If the date does not exist, it will be added)
help: Automatically adds or modifies the date to frontmatter when a page is first saved via the Grav Admin Plugin
author:
type: select
size: large
label: Author action
default: add
options:
none: None
add: Add (If the author exist, it will not be executed)
both: Modify (If the author does not exist, it will be added)
help: Automatically adds or modifies the author to frontmatter when a page is first saved via the Grav Admin Plugin
taxonomy_author:
type: select
size: large
label: Author (taxonomy type) action
default: none
options:
none: None
editor_only: Editor only
current_alphabetically: Current alphabetically
all_alphabetically: All alphabetically
editor_first_others_unchanged: Editor first, others unchanged
editor_last_others_unchanged: Editor last, others unchanged
editor_first_others_alphabetically: Editor first, others alphabetically
editor_last_others_alphabetically: Editor last, others alphabetically
help: Automatically adds or modifies the author (taxonomy type) to frontmatter when a page is saved via the Grav Admin Plugin