-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy path_arguments.yml
More file actions
1631 lines (1605 loc) · 40.4 KB
/
_arguments.yml
File metadata and controls
1631 lines (1605 loc) · 40.4 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
arguments:
_bookshop_name:
type: string
optional: true
comment: Unique name of the bookshop component.
group: partial
# a
absolute-url:
type: string
optional: true
default: false
comment: >-
Defines if a local image should use absolute instead of relative paths.
account:
type: string
optional: true
comment: >-
Account name of the video asset, required by some digital asset managers.
You can also set the default account name in the site's parameters.
active:
type: bool
optional: true
comment: >-
Sets the current item as active (only one item at a time). By
default, the first item is made active.
alert-type:
type: select
optional: true
comment: Type of the alert, generates an alert with related color and icon.
options:
values:
- danger
- info
align:
type: select
optional: true
default: start
comment: Alignment of the headline, content, or icon.
options:
values:
- start
- center
- end
alt:
type: string
optional: true
comment: >-
Alternate text for the thumbnail, uses `title` by default.
always-open:
type: bool
optional: true
comment: >-
Flag to make accordion items stay open when another item is opened.
anchor:
type: select
optional: true
comment:
Anchor of the image's crop box, defaults to anchor value set in
`imaging` section of the site configuration (usually `Smart`).
options:
values:
- TopLeft
- Top
- TopRight
- Left
- Center
- Right
- BottomLeft
- Bottom
- BottomRight
- Smart
# animated:
# type: bool
# optional: true
# default: false
# comment: >-
# Enables card animations.
# release: v0.27.0
aria-label:
type: string
optional: true
comment: Alias for label.
attributes:
type: map[string]interface {}
optional: true
comment: >-
Dictionary of key-value pairs added as custom attributes to the element.
group: partial
arrangement:
type: select
optional: true
default: above
options:
values:
- above
- first
comment: >-
Arrangement of the preheading, either left or above the header. On smaller
screens, the preheading is always placed on top.
autoplay:
type: bool
optional: true
default: false
comment: >-
Flag indicating the video should start playing immediately when loaded, if
supported by the browser. The audio will be muted.
autotitle:
type: bool
optional: true
default: false
comment: >-
Trigger to retrieve the title from the video metadata, if supported by the
provider.
# b
backdrop:
type: string
optional: true
comment: Background image with a mask to improve contrast.
background:
type:
- background
- string
optional: true
comment: Background style of the section.
badge:
type: string
optional: true
comment: Positioned badge to display on top of the button.
bento:
type: bool
optional: true
default: false
comment: >-
Trigger to use a bento-style layout instead of default grid layout.
body:
type:
- string
- template.HTML
optional: true
comment: The body content of the item, supports Markdown and HTML (if enabled).
body-style:
type: select
optional: true
default: full
comment: >-
Body components of the element.
options:
values:
- full
- title
- none
# # TODO: rename bodyStyle
# bodyStyle:
# type: string
# optional: true
# default: lead text-muted
# comment: >-
# Style of the body text, if any..
border:
type: bool
optional: true
comment: Flag add a border to the element.
breadcrumb:
type: bool
optional: true
comment: Flag to include a breadcrumb in the element.
# breakpoint:
# type: select
# optional: true
# position: 0
# comment: >-
# By default, the table shortcode is responsive for all viewports. When a
# breakpoint is set, the table will behave normally and not scroll
# horizontally from the provided breakpoint and up. Use `none` to disable
# this behavior. You can specify multiple breakpoints when using positional
# arguments.
# options:
# values:
# - none
# - sm
# - md
# - lg
# - xl
# - xxl
breakpoint:
type: select
optional: true
comment: Breakpoint of the element.
default: md
options:
values:
- xs
- sm
- md
- lg
- xl
button:
type: bool
optional: true
comment: >-
Flag indicating the elements should include a button that links to the
provided address.
button-label:
type: string
optional: true
comment: >-
Label of the link button, defaults to the card title.
button-size:
type: select
optional: true
default: md
comment: Size of the button.
options:
values:
- sm
- md
- lg
button-state:
type: select
optional: true
default: enabled
comment: State of the button.
options:
values:
- enabled
- disabled
- active
- inactive
# TODO: rename to link-type
# buttonType:
# type: select
# optional: true
# default: button
# release: v0.23.18
# comment: Type of the button elements.
# options:
# values:
# - link
# - button
# c
caption:
type: string
optional: true
comment: Caption of the carousel slide or illustration.
cards:
type: string
optional: true
comment: String of rendered cards.
group: partial
case:
type: bool
optional: true
default: true
comment: >-
Flag to indicate if the retrieved title (e.g. no inner text is provided)
of an internal link should use its original case. If false, the title is
set to lower case.
# category:
# type: select
# optional: true
# default: other
# comment: >-
# Assigns the script to a category that can be used for cookie consent
# management.
# options:
# values:
# - necessary
# - functional
# - analytics
# - performance
# - advertisement
# - other
categories:
type:
- string
- slice
optional: true
comment: >-
Categories to be used as filter. When set, only pages that belong to at
least one of the provided categories are retrieved.
# center:
# type: bool
# optional: true
# default: true
# comment: >-
# Centers images and icons when using stacked mode.
class:
type: string
optional: true
comment: >-
Class attributes of the element. It supports Bootstrap attributes to
modify the styling of the element.
clipboard:
type:
- string
- template.URL
optional: true
comment: Text to be copied to the clipboard when the button is clicked.
collapse-id:
type: string
optional: true
comment: >-
ID of the panel to collapse. Cannot be used together with tooltip. Ignored
for active/inactive buttons.
color:
type: select
optional: true
comment: Theme color of the element.
options:
values:
- primary
- secondary
- success
- danger
- warning
- info
- light
- dark
- white
- black
- body
- body-tertiary
color-mode:
type: select
optional: true
comment: >-
Color mode to apply to the illustration.
options:
values:
- light
- dark
cols:
type: int
optional: true
default: 3
comment: Number of grid columns.
options:
min: 1
max: 5
container:
type: string
optional: true
comment: Container name of the origin server.
# content:
# type: string
# optional: true
# comment: A short paragraph or a sub-headline that provides extra info.
# # TODO: merge content
content:
type:
- string
- template.HTML
optional: true
comment: Section content displayed below the title.
contrast:
type: bool
default: false
optional: true
comment: >-
Flag indicating if the element text should be rendered with high contrast.
cover:
type: bool
default: true
optional: true
comment: Flag indicating if the element should be rendered fullscreen.
cue:
type: bool
optional: true
comment: >-
Flag to indicate if an external link should show a visual cue, defaults
to the setting `main.externalLinks.cue` in the site's parameters.
# # d
data:
type: string
comment: >-
Path of the input data relative to the site's data folder. Supported data
formats include `JSON`, `TOML`, `YAML`, and `XML`. You can omit the file
extension.
# data:
# type: string
# # default: abbr.yaml
# optional: true
# comment: >-
# Filename of the data input. You can omit the file extension. The
# file should reside in the `data` folder. The data supports language
# extensions. For example, `abbr.en.yaml` refers to the English translation
# of the abbrevation data. The filename `abbr.yaml` is used when no suitable
# translation is found.
description:
type:
- string
- template.HTML
optional: true
comment: >-
Description of the element.
# # TODO: merge description
# description:
# type: string
# optional: true
# comment: Section description.
# destination:
# type: string
# optional: false
# group: partial
# comment: >-
# Target destination.
dims:
type:
- slice
- '[]string'
optional: false
comment: >-
Image dimensions to use, specified as `width` `x` `height` in pixels.
disabled:
type: bool
optional: true
comment: Flag to indicate the item should be in a disabled state.
dismissible:
type: bool
optional: true
default: false
comment: Flag to indicate the alert is dismissible.
download:
type: string
optional: false
comment: Path to the download file, relative to the site's static folder.
# e
elements:
type: elements
optional: false
comment: >-
Elements to include in the card group. Each element is rendered as a card.
external:
type: bool
optional: true
default: false
comment: >-
Flag to indicate if a link that contains a baseURL host should be forced as external.
# f
fade:
type: bool
optional: true
comment: Flag to make the tab pane fade in.
parent: cascade
figclass:
type: string
optional: true
comment: Class attribute of the figure caption, e.g. `px-4`.
file:
type: string
optional: false
comment: >-
Path of the input file. The path is relative to the `basePath` defined in
the `docs` section of the site's parameters. If the file starts with `./`,
the path of the repository is used as base path instead.
# # TODO: merge file
# file:
# type: string
# optional: false
# comment: >-
# The last element of an URL extension. For example, the file of the
# URL 'https://example.com/first/second/third.webp' equals 'third.webp'.
# fixed:
# type: bool
# optional: true
# default: false
# comment: Flag to indicate the navbar should stick to the top.
# group: partial
format:
type: select
optional: true
default: webp
comment: >-
Image format; leave empty for an auto format (if supported) or default
format (usually webp).
options:
values:
- png
- jpg
- gif
- tiff
- bmp
- webp
# # TODO: rename format
# format:
# type: select
# optional: true
# default: default
# comment:
# options:
# values:
# - default
# - terse
footer-style:
type: select
optional: true
default: none
comment: >-
Footer components of the element, displayed in small caps.
options:
values:
- full
- publication
- tags
- none
force:
type: bool
optional: true
default: false
comment: >-
Flag to indicate a link should bypass any language redirection. Only applicable when
the site param `enableLanguageSelectionStorage` is set to true. When `force` is true,
the link to a local page is kept as is.
full:
type: bool
optional: true
default: true
comment: >-
If unset, shows the filename only. By default, the entire path (relative
to the base path) is shown.
# # g
# group:
# type: string
# position: 1
# optional: true
# comment: >-
# Name of the group filter. This is typically used when a shortcode and
# partial have common arguments. The group filter binds a specific argument
# to a particular group. By default, an argument belongs to all groups.
grow:
type: bool
optional: true
default: false
comment: Flag to indicate the spinner is growing instead of rotating.
gutter:
type: int
optional: true
default: 4
comment: Gutter between columns in a group.
options:
min: 0
max: 5
# # h
# header:
# type: string
# optional: false
# comment: Header of the item.
header-style:
type: select
optional: true
default: full
comment: >-
Header components of the element, displayed in small caps.
options:
values:
- full
- publication
- tags
- none
heading:
type: heading
optional: true
comment: >-
Heading of the content block, including a preheading and content element.
# # TODO: rename headingStyle
# headingStyle:
# type: select
# optional: true
# default: display
# options:
# values:
# - display
# - fs
# comment: >-
# Style of the heading, either display or fs (regular).
# headline:
# type: string
# optional: true
# comment: Headline of the section.
# height:
# type: int
# optional: false
# comment: Height of the image in pixels.
hide-empty:
type: bool
comment: Hides the entire section when no pages are available.
# TODO: replace with link
href:
type:
- string
- template.URL
- url
optional: true
comment: >-
Address for the button or hyperlink. When set for a card group, a button
is added if the list exceeds the maximum number of cards to display.
# group: partial
href-force:
type: bool
optional: true
comment: Forces the more button, ignoring page count.
# TODO: use title instead
href-title:
type: string
optional: true
comment: >-
Title of the button or hyperlink as companion to href.
group: partial
hook:
type: string
optional: true
comment: Render hook for the element's partial.
host:
type: string
optional: true
comment: Host to add to the prompt, e.g. `localhost`.
# # TODO: merge host
# host:
# type: string
# optional: true
# comment: >-
# Host of an URL. For example, the host of the URL
# 'https://example.com/first/second/third.webp' equals 'example.com'.
# i
id:
type: string
optional: true
comment: >-
Unique identifier of the current element.
icon:
type: string
optional: true
comment: >-
Icon to include. You can use shorthand notation such as `fas sort` to
include a Font Awesome icon. The argument also supports files with an
`.svg` or `.json` extension.
icon-rounded:
type: bool
optional: true
comment: Stack the icon in a round container.
illustration:
type: illustration
optional: true
comment: Featured illustration of the element.
image:
type: string
optional: true
comment: Image to include in the the content block or section heading.
image-height:
type: int
optional: true
comment: Height of the image in pixels.
image-overlay:
type: bool
optional: true
default: false
comment: Trigger to include an image overlay placeholder.
image-width:
type: int
optional: true
comment: Width of the image in pixels.
imageset:
type: bool
optional: true
comment: Flag to indicate the image should be rendered as image set.
img:
type: "*resources.resourceAdapter"
optional: true
comment: >-
Image resource to process. Must be set when handling local images.
include-width:
type: bool
optional: true
comment: >-
Flag to indicate if the image set should render the image widths.
inline:
type: bool
optional: true
default: false
comment: Flag to render the element inline with the text.
input:
type: input
optional: false
comment: >-
List input of the element. Uses the name of the section to retrieve known
pages.
# input:
# type:
# - string
# - template.HTML
# optional: false
# comment: Table input in markdown format.
# group: partial
# integrity:
# type: string
# optional: true
# comment: >-
# Cryptographic hash of the script to enable Subresource Integrity (SRI).
items:
type: items
optional: false
comment: >-
Items to include in the FAQ.
# j
justify:
type: select
optional: true
default: center
comment: Justification of the link title and icon.
options:
values:
- start
- end
- center
- between
- around
- evenly
# k
# key:
# type: string
# position: 0
# optional: false
# comment: >-
# Case-insensitive key of the abbreviation. In shorthand notation, this is
# the first (and only) matched argument. Non-alphanumeric keys must be quoted.
keywords:
type:
- string
- slice
optional: true
comment: >-
Keywords to be used as filter. When set, only pages that match at least
one of the provided keywords are retrieved.
# kind:
# type: select
# optional: true
# default: regular
# comment: >-
# Kind of page collection to use.
# options:
# values:
# - regular
# - related
# - taxonomy
# # l
label:
type: string
optional: true
comment: >-
Assistive label of the element.
# lang:
# type: string
# optional: true
# default: markdown
# comment: >-
# Language used to display the code. Use `hugo` to process Hugo (escaped)
# shortcodes and `bookshop` to render a Bookshop component using inline
# YAML data.
# # TODO: merge lang
lang:
type: string
optional: true
comment: >-
Language to be used by the syntax highlighter. For files, the language is
derived from the file extension when no language is specified. When
rendering code examples with the `example` shortcode, use `hugo` to process
Hugo (escaped) shortcodes and `bookshop` to render a Bookshop component
using inline YAML data.
# link:
# type: string
# optional: false
# comment: >-
# Location of the script source, either an URL for an external script or a
# (relative) path for a local script.
link:
type:
- string
- template.URL
- url
optional: true
comment: >-
Local page reference or external hyperlink address.
link-type:
type: select
optional: true
default: button
comment: Style of the link.
options:
values:
- button
- link
links:
type: links
optional: true
comment: Links to add as buttons.
list:
type:
- 'page.Pages'
- 'resource.Resources'
- dict
optional: true
comment: Array of pages or structured content to be rendered.
group: partial
loading:
type: select
optional: true
default: eager
comment: >-
Image loading behavior. The loading of lazily loaded images is deferred
until the image is within scrolling range of the viewport. This should
reduce the initial loading time of the website. It is recommended to
lazily load only those images that are below the page fold.
options:
values:
- lazy
- eager
# logo:
# type: path
# optional: true
# comment: >-
# Address of the logo image, defaults to the parameter `logo` set in the
# `main` section of the site's parameter configuration.
# # m
max:
type: int
optional: true
comment: Maximum number of elements to display.
group: partial
options:
min: 1
media-id:
type: string
optional: true
comment: ID of the asset to be embedded.
minimal:
type: bool
optional: true
comment: Renders the element with without a title.
# # TODO: merge menu
# menu:
# type: '*navigation.MenuEntry'
# optional: false
# comment: Menu data to use for the navbar item.
# menu:
# type: slice
# optional: true
# comment: Path of the sidebar navigation menu.
# # TODO: rename menus
# menus:
# type: string
# optional: true
# default: main
# comment: Name of the menu configuration.
messages:
type: messages
optional: true
comment: >-
Messages to include in the element. Each element is rendered as a card.
message:
type:
- string
- template.HTML
optional: false
comment: Message to display.
group: partial
mode:
type: bool
default: false
optional: true
comment: >-
Flag indicating if the image should support color modes. If set, the
elements searches for images having a matching color-mode suffix
such as `-light` or `-dark`.
# # TODO: merge with mode
# mode:
# type: bool
# optional: true
# default: true
# comment: >-
# Flag to include a color mode switcher, defaults to `true` when dark mode
# is enabled.
more:
type: more
optional: true
comment: >-
When set for a card group, a button is added if the list exceeds the
maximum number of cards to display.
# # n
name:
type: string
optional: false
comment: >-
Name of the code snippet, used to identify the relevant section of the
input file.
navitem-type:
type: select
optional: true
comment: Type of the item to render.
options:
values:
- accordion
- tab-pane
group: partial
nav-items:
type: string
optional: true
comment: Preprocessed nav items, typically passed by a shortcode to a partial.
group: partial
nav-titles:
type:
- slice
- '[]string'
optional: true
comment: Titles of the nav items, used when passing preprocessed nav items.
group: partial
nested:
type: bool
optional: true
comment: >-
If set, retrieves all pages below the section or current page recursively.
By default, only first-order childs are retrieved.
# # o
options:
type: string
optional: true
comment: >-
Hugo highlighting options, see https://gohugo.io/shortcodes/highlight/#options-1.
order:
type: select
optional: true
default: last
comment: Order of the illustration.
options:
values:
- first
- last
# # TODO: remove horizontal-sm & overlay
orientation:
type: select
optional: true
default: stacked
comment: Placement of the thumbnail or icon.
options:
values:
- stacked
- horizontal
- horizontal-sm
- overlay
- none
outline:
type: bool
optional: true
default: false
comment: >-
Flag indicating the element should use an outline color instead of a fill
color.
# overlay:
# type: bool
# optional: true
# default: false
# comment: >-
# Flag to indicate if the navbar should render as an overlay on the current
# page.
# group: partial
# release: v0.22.6
overlay-mode:
type: select
optional: true
comment: >-
Overlay mode of the element, overrides the site's general configuration.
options:
values:
- light
- dark
- none
# p
padding:
type: int
optional: true
default: 3
# parent: cascade