Debian Codegraph @

docs/data/docs.yaml

raw
1 chroma:
2 lexers:
3 - Aliases:
4 - abap
5 Name: ABAP
6 - Aliases:
7 - abnf
8 Name: ABNF
9 - Aliases:
10 - as
11 - actionscript
12 Name: ActionScript
13 - Aliases:
14 - as3
15 - actionscript3
16 Name: ActionScript 3
17 - Aliases:
18 - ada
19 - ada95
20 - ada2005
21 Name: Ada
22 - Aliases:
23 - agda
24 Name: Agda
25 - Aliases:
26 - al
27 Name: AL
28 - Aliases:
29 - alloy
30 Name: Alloy
31 - Aliases:
32 - ampl
33 Name: AMPL
34 - Aliases:
35 - ng2
36 Name: Angular2
37 - Aliases:
38 - antlr
39 Name: ANTLR
40 - Aliases:
41 - apacheconf
42 - aconf
43 - apache
44 Name: ApacheConf
45 - Aliases:
46 - apl
47 Name: APL
48 - Aliases:
49 - applescript
50 Name: AppleScript
51 - Aliases:
52 - aql
53 Name: ArangoDB AQL
54 - Aliases:
55 - arduino
56 Name: Arduino
57 - Aliases:
58 - armasm
59 Name: ArmAsm
60 - Aliases:
61 - arturo
62 - art
63 Name: Arturo
64 - Aliases:
65 - atl
66 Name: ATL
67 - Aliases:
68 - autohotkey
69 - ahk
70 Name: AutoHotkey
71 - Aliases:
72 - autoit
73 Name: AutoIt
74 - Aliases:
75 - awk
76 - gawk
77 - mawk
78 - nawk
79 Name: Awk
80 - Aliases:
81 - ballerina
82 Name: Ballerina
83 - Aliases:
84 - bash
85 - sh
86 - ksh
87 - zsh
88 - shell
89 Name: Bash
90 - Aliases:
91 - bash-session
92 - console
93 - shell-session
94 Name: Bash Session
95 - Aliases:
96 - bat
97 - batch
98 - dosbatch
99 - winbatch
100 Name: Batchfile
101 - Aliases:
102 - beef
103 Name: Beef
104 - Aliases:
105 - bib
106 - bibtex
107 Name: BibTeX
108 - Aliases:
109 - bicep
110 Name: Bicep
111 - Aliases:
112 - blitzbasic
113 - b3d
114 - bplus
115 Name: BlitzBasic
116 - Aliases:
117 - bnf
118 Name: BNF
119 - Aliases:
120 - bqn
121 Name: BQN
122 - Aliases:
123 - brainfuck
124 - bf
125 Name: Brainfuck
126 - Aliases:
127 - c
128 Name: C
129 - Aliases:
130 - csharp
131 - 'c#'
132 Name: 'C#'
133 - Aliases:
134 - cpp
135 - c++
136 Name: C++
137 - Aliases:
138 - c3
139 Name: C3
140 - Aliases:
141 - caddyfile
142 - caddy
143 Name: Caddyfile
144 - Aliases:
145 - caddyfile-directives
146 - caddyfile-d
147 - caddy-d
148 Name: Caddyfile Directives
149 - Aliases:
150 - capnp
151 Name: Cap'n Proto
152 - Aliases:
153 - cassandra
154 - cql
155 Name: Cassandra CQL
156 - Aliases:
157 - ceylon
158 Name: Ceylon
159 - Aliases:
160 - cfengine3
161 - cf3
162 Name: CFEngine3
163 - Aliases:
164 - cfs
165 Name: cfstatement
166 - Aliases:
167 - chai
168 - chaiscript
169 Name: ChaiScript
170 - Aliases:
171 - chapel
172 - chpl
173 Name: Chapel
174 - Aliases:
175 - cheetah
176 - spitfire
177 Name: Cheetah
178 - Aliases:
179 - clojure
180 - clj
181 - edn
182 Name: Clojure
183 - Aliases:
184 - cmake
185 Name: CMake
186 - Aliases:
187 - cobol
188 Name: COBOL
189 - Aliases:
190 - coffee-script
191 - coffeescript
192 - coffee
193 Name: CoffeeScript
194 - Aliases:
195 - common-lisp
196 - cl
197 - lisp
198 Name: Common Lisp
199 - Aliases:
200 - coq
201 Name: Coq
202 - Aliases:
203 - core
204 Name: Core
205 - Aliases:
206 - cr
207 - crystal
208 Name: Crystal
209 - Aliases:
210 - css
211 Name: CSS
212 - Aliases:
213 - csv
214 Name: CSV
215 - Aliases:
216 - cue
217 Name: CUE
218 - Aliases:
219 - cython
220 - pyx
221 - pyrex
222 Name: Cython
223 - Aliases:
224 - d
225 Name: D
226 - Aliases:
227 - dart
228 Name: Dart
229 - Aliases:
230 - dax
231 Name: Dax
232 - Aliases:
233 - desktop
234 - desktop_entry
235 Name: Desktop file
236 - Aliases:
237 - devicetree
238 - dts
239 Name: Devicetree
240 - Aliases:
241 - diff
242 - udiff
243 Name: Diff
244 - Aliases:
245 - django
246 - jinja
247 Name: Django/Jinja
248 - Aliases:
249 - zone
250 - bind
251 Name: dns
252 - Aliases:
253 - docker
254 - dockerfile
255 - containerfile
256 Name: Docker
257 - Aliases:
258 - dtd
259 Name: DTD
260 - Aliases:
261 - dylan
262 Name: Dylan
263 - Aliases:
264 - ebnf
265 Name: EBNF
266 - Aliases:
267 - elixir
268 - ex
269 - exs
270 Name: Elixir
271 - Aliases:
272 - elm
273 Name: Elm
274 - Aliases:
275 - emacs
276 - elisp
277 - emacs-lisp
278 Name: EmacsLisp
279 - Aliases:
280 - erb
281 - html+erb
282 - html+ruby
283 - rhtml
284 Name: ERB
285 - Aliases:
286 - erlang
287 Name: Erlang
288 - Aliases:
289 - factor
290 Name: Factor
291 - Aliases:
292 - fennel
293 - fnl
294 Name: Fennel
295 - Aliases:
296 - fish
297 - fishshell
298 Name: Fish
299 - Aliases:
300 - forth
301 Name: Forth
302 - Aliases:
303 - fortran
304 - f90
305 Name: Fortran
306 - Aliases:
307 - fortranfixed
308 Name: FortranFixed
309 - Aliases:
310 - fsharp
311 Name: FSharp
312 - Aliases:
313 - gas
314 - asm
315 Name: GAS
316 - Aliases:
317 - gdscript
318 - gd
319 Name: GDScript
320 - Aliases:
321 - gdscript3
322 - gd3
323 Name: GDScript3
324 - Aliases:
325 - gemfile-lock
326 - gemfilelock
327 Name: Gemfile.lock
328 - Aliases:
329 - gemtext
330 - gmi
331 - gmni
332 - gemini
333 Name: Gemtext
334 - Aliases:
335 - genshi
336 - kid
337 - xml+genshi
338 - xml+kid
339 Name: Genshi
340 - Aliases:
341 - html+genshi
342 - html+kid
343 Name: Genshi HTML
344 - Aliases:
345 - genshitext
346 Name: Genshi Text
347 - Aliases:
348 - pot
349 - po
350 Name: Gettext
351 - Aliases:
352 - cucumber
353 - Cucumber
354 - gherkin
355 - Gherkin
356 Name: Gherkin
357 - Aliases:
358 - gleam
359 Name: Gleam
360 - Aliases:
361 - glsl
362 Name: GLSL
363 - Aliases:
364 - gnuplot
365 Name: Gnuplot
366 - Aliases:
367 - go
368 - golang
369 Name: Go
370 - Aliases:
371 - go-html-template
372 Name: Go HTML Template
373 - Aliases:
374 - go-template
375 Name: Go Template
376 - Aliases:
377 - go-text-template
378 Name: Go Text Template
379 - Aliases:
380 - graphql
381 - graphqls
382 - gql
383 Name: GraphQL
384 - Aliases:
385 - groff
386 - nroff
387 - man
388 Name: Groff
389 - Aliases:
390 - groovy
391 Name: Groovy
392 - Aliases:
393 - handlebars
394 - hbs
395 Name: Handlebars
396 - Aliases:
397 - hare
398 Name: Hare
399 - Aliases:
400 - haskell
401 - hs
402 Name: Haskell
403 - Aliases:
404 - hx
405 - haxe
406 - hxsl
407 Name: Haxe
408 - Aliases:
409 - hcl
410 Name: HCL
411 - Aliases:
412 - hexdump
413 Name: Hexdump
414 - Aliases:
415 - hlb
416 Name: HLB
417 - Aliases:
418 - hlsl
419 Name: HLSL
420 - Aliases:
421 - holyc
422 Name: HolyC
423 - Aliases:
424 - html
425 Name: HTML
426 - Aliases:
427 - http
428 Name: HTTP
429 - Aliases:
430 - hylang
431 Name: Hy
432 - Aliases:
433 - idris
434 - idr
435 Name: Idris
436 - Aliases:
437 - igor
438 - igorpro
439 Name: Igor
440 - Aliases:
441 - ini
442 - cfg
443 - dosini
444 Name: INI
445 - Aliases:
446 - io
447 Name: Io
448 - Aliases:
449 - iscdhcpd
450 Name: ISCdhcpd
451 - Aliases:
452 - j
453 Name: J
454 - Aliases:
455 - janet
456 Name: Janet
457 - Aliases:
458 - java
459 Name: Java
460 - Aliases:
461 - js
462 - javascript
463 Name: JavaScript
464 - Aliases:
465 - json
466 - jsonl
467 Name: JSON
468 - Aliases:
469 - jsonata
470 Name: JSONata
471 - Aliases:
472 - jsonnet
473 Name: Jsonnet
474 - Aliases:
475 - julia
476 - jl
477 Name: Julia
478 - Aliases:
479 - jungle
480 Name: Jungle
481 - Aliases:
482 - kak
483 - kakoune
484 - kakrc
485 - kakscript
486 Name: Kakoune
487 - Aliases:
488 - kdl
489 Name: KDL
490 - Aliases:
491 - kotlin
492 Name: Kotlin
493 - Aliases:
494 - lateralus
495 - ltl
496 Name: Lateralus
497 - Aliases:
498 - lean4
499 - lean
500 Name: Lean4
501 - Aliases:
502 - lighty
503 - lighttpd
504 Name: Lighttpd configuration file
505 - Aliases:
506 - lilypond
507 Name: LilyPond
508 - Aliases:
509 - llvm
510 Name: LLVM
511 - Aliases: null
512 Name: lox
513 - Aliases:
514 - lua
515 Name: Lua
516 - Aliases:
517 - luau
518 Name: Luau
519 - Aliases:
520 - make
521 - makefile
522 - mf
523 - bsdmake
524 Name: Makefile
525 - Aliases:
526 - mako
527 Name: Mako
528 - Aliases:
529 - md
530 - mkd
531 Name: markdown
532 - Aliases:
533 - mess
534 Name: Markless
535 - Aliases:
536 - mason
537 Name: Mason
538 - Aliases:
539 - materialize
540 - mzsql
541 Name: Materialize SQL dialect
542 - Aliases:
543 - mathematica
544 - mma
545 - nb
546 Name: Mathematica
547 - Aliases:
548 - matlab
549 Name: Matlab
550 - Aliases:
551 - mcfunction
552 - mcf
553 Name: MCFunction
554 - Aliases:
555 - meson
556 - meson.build
557 Name: Meson
558 - Aliases:
559 - metal
560 Name: Metal
561 - Aliases:
562 - µcad
563 Name: microcad
564 - Aliases:
565 - minizinc
566 - MZN
567 - mzn
568 Name: MiniZinc
569 - Aliases:
570 - mlir
571 Name: MLIR
572 - Aliases:
573 - modelica
574 Name: Modelica
575 - Aliases:
576 - modula2
577 - m2
578 Name: Modula-2
579 - Aliases:
580 - mojo
581 - 🔥
582 Name: Mojo
583 - Aliases:
584 - monkeyc
585 Name: MonkeyC
586 - Aliases:
587 - moonbit
588 - mbt
589 Name: MoonBit
590 - Aliases:
591 - moonscript
592 - moon
593 Name: MoonScript
594 - Aliases:
595 - morrowind
596 - mwscript
597 Name: MorrowindScript
598 - Aliases:
599 - myghty
600 Name: Myghty
601 - Aliases:
602 - mysql
603 - mariadb
604 Name: MySQL
605 - Aliases:
606 - nasm
607 Name: NASM
608 - Aliases:
609 - natural
610 Name: Natural
611 - Aliases:
612 - ndisasm
613 Name: NDISASM
614 - Aliases:
615 - newspeak
616 Name: Newspeak
617 - Aliases:
618 - nginx
619 Name: Nginx configuration file
620 - Aliases:
621 - nim
622 - nimrod
623 Name: Nim
624 - Aliases:
625 - nixos
626 - nix
627 Name: Nix
628 - Aliases:
629 - nsis
630 - nsi
631 - nsh
632 Name: NSIS
633 - Aliases:
634 - nu
635 Name: Nu
636 - Aliases:
637 - objective-c
638 - objectivec
639 - obj-c
640 - objc
641 Name: Objective-C
642 - Aliases:
643 - objectpascal
644 Name: ObjectPascal
645 - Aliases:
646 - ocaml
647 Name: OCaml
648 - Aliases:
649 - octave
650 Name: Octave
651 - Aliases:
652 - odin
653 Name: Odin
654 - Aliases:
655 - ones
656 - onesenterprise
657 - 1S
658 - 1S:Enterprise
659 Name: OnesEnterprise
660 - Aliases:
661 - openedge
662 - abl
663 - progress
664 - openedgeabl
665 Name: OpenEdge ABL
666 - Aliases:
667 - openscad
668 Name: OpenSCAD
669 - Aliases:
670 - org
671 - orgmode
672 Name: Org Mode
673 - Aliases:
674 - pacmanconf
675 Name: PacmanConf
676 - Aliases:
677 - perl
678 - pl
679 Name: Perl
680 - Aliases:
681 - php
682 - php3
683 - php4
684 - php5
685 Name: PHP
686 - Aliases:
687 - phtml
688 Name: PHTML
689 - Aliases:
690 - pig
691 Name: Pig
692 - Aliases:
693 - pkgconfig
694 Name: PkgConfig
695 - Aliases:
696 - plpgsql
697 Name: PL/pgSQL
698 - Aliases:
699 - text
700 - plain
701 - no-highlight
702 Name: plaintext
703 - Aliases:
704 - plutus-core
705 - plc
706 Name: Plutus Core
707 - Aliases:
708 - pony
709 Name: Pony
710 - Aliases:
711 - postgresql
712 - postgres
713 Name: PostgreSQL SQL dialect
714 - Aliases:
715 - postscript
716 - postscr
717 Name: PostScript
718 - Aliases:
719 - pov
720 Name: POVRay
721 - Aliases:
722 - powerquery
723 - pq
724 Name: PowerQuery
725 - Aliases:
726 - powershell
727 - posh
728 - ps1
729 - psm1
730 - psd1
731 - pwsh
732 Name: PowerShell
733 - Aliases:
734 - prolog
735 Name: Prolog
736 - Aliases:
737 - promela
738 Name: Promela
739 - Aliases:
740 - promql
741 Name: PromQL
742 - Aliases:
743 - java-properties
744 Name: properties
745 - Aliases:
746 - protobuf
747 - proto
748 Name: Protocol Buffer
749 - Aliases:
750 - txtpb
751 Name: Protocol Buffer Text Format
752 - Aliases:
753 - prql
754 Name: PRQL
755 - Aliases:
756 - psl
757 Name: PSL
758 - Aliases:
759 - puppet
760 Name: Puppet
761 - Aliases:
762 - python
763 - py
764 - sage
765 - python3
766 - py3
767 - starlark
768 Name: Python
769 - Aliases:
770 - python2
771 - py2
772 Name: Python 2
773 - Aliases:
774 - qbasic
775 - basic
776 Name: QBasic
777 - Aliases:
778 - qml
779 - qbs
780 Name: QML
781 - Aliases:
782 - splus
783 - s
784 - r
785 Name: R
786 - Aliases:
787 - racket
788 - rkt
789 Name: Racket
790 - Aliases:
791 - ragel
792 Name: Ragel
793 - Aliases:
794 - perl6
795 - pl6
796 - raku
797 Name: Raku
798 - Aliases:
799 - jsx
800 - react
801 Name: react
802 - Aliases:
803 - reason
804 - reasonml
805 Name: ReasonML
806 - Aliases:
807 - registry
808 Name: reg
809 - Aliases:
810 - rego
811 Name: Rego
812 - Aliases:
813 - rst
814 - rest
815 - restructuredtext
816 Name: reStructuredText
817 - Aliases:
818 - rexx
819 - arexx
820 Name: Rexx
821 - Aliases:
822 - rgbasm
823 Name: RGBDS Assembly
824 - Aliases:
825 - ring
826 Name: Ring
827 - Aliases:
828 - SQLRPGLE
829 - RPG IV
830 Name: RPGLE
831 - Aliases:
832 - spec
833 Name: RPMSpec
834 - Aliases:
835 - rb
836 - ruby
837 - duby
838 Name: Ruby
839 - Aliases:
840 - rust
841 - rs
842 Name: Rust
843 - Aliases:
844 - sas
845 Name: SAS
846 - Aliases:
847 - sass
848 Name: Sass
849 - Aliases:
850 - scala
851 Name: Scala
852 - Aliases:
853 - scdoc
854 Name: scdoc
855 - Aliases:
856 - scheme
857 - scm
858 Name: Scheme
859 - Aliases:
860 - scilab
861 Name: Scilab
862 - Aliases:
863 - scss
864 Name: SCSS
865 - Aliases:
866 - sed
867 - gsed
868 - ssed
869 Name: Sed
870 - Aliases:
871 - sieve
872 Name: Sieve
873 - Aliases:
874 - smali
875 Name: Smali
876 - Aliases:
877 - smalltalk
878 - squeak
879 - st
880 Name: Smalltalk
881 - Aliases:
882 - smarty
883 Name: Smarty
884 - Aliases:
885 - snbt
886 Name: SNBT
887 - Aliases:
888 - snobol
889 Name: Snobol
890 - Aliases:
891 - sol
892 - solidity
893 Name: Solidity
894 - Aliases:
895 - sp
896 Name: SourcePawn
897 - Aliases:
898 - spade
899 Name: Spade
900 - Aliases:
901 - sparql
902 Name: SPARQL
903 - Aliases:
904 - sql
905 Name: SQL
906 - Aliases:
907 - squidconf
908 - squid.conf
909 - squid
910 Name: SquidConf
911 - Aliases:
912 - sml
913 Name: Standard ML
914 - Aliases: null
915 Name: stas
916 - Aliases:
917 - stylus
918 Name: Stylus
919 - Aliases:
920 - svelte
921 Name: Svelte
922 - Aliases:
923 - swift
924 Name: Swift
925 - Aliases:
926 - systemd
927 Name: SYSTEMD
928 - Aliases:
929 - systemverilog
930 - sv
931 Name: systemverilog
932 - Aliases:
933 - tablegen
934 Name: TableGen
935 - Aliases:
936 - tal
937 - uxntal
938 Name: Tal
939 - Aliases:
940 - tasm
941 Name: TASM
942 - Aliases:
943 - tcl
944 Name: Tcl
945 - Aliases:
946 - tcsh
947 - csh
948 Name: Tcsh
949 - Aliases:
950 - templ
951 Name: Templ
952 - Aliases:
953 - termcap
954 Name: Termcap
955 - Aliases:
956 - terminfo
957 Name: Terminfo
958 - Aliases:
959 - terraform
960 - tf
961 - hcl
962 Name: Terraform
963 - Aliases:
964 - tex
965 - latex
966 Name: TeX
967 - Aliases:
968 - thrift
969 Name: Thrift
970 - Aliases:
971 - toml
972 Name: TOML
973 - Aliases:
974 - tradingview
975 - tv
976 Name: TradingView
977 - Aliases:
978 - tsql
979 - t-sql
980 Name: Transact-SQL
981 - Aliases:
982 - turing
983 Name: Turing
984 - Aliases:
985 - turtle
986 Name: Turtle
987 - Aliases:
988 - twig
989 Name: Twig
990 - Aliases:
991 - ts
992 - tsx
993 - typescript
994 Name: TypeScript
995 - Aliases:
996 - typoscript
997 Name: TypoScript
998 - Aliases:
999 - typoscriptcssdata
1000 Name: TypoScriptCssData
1001 - Aliases:
1002 - typoscripthtmldata
1003 Name: TypoScriptHtmlData
1004 - Aliases:
1005 - typst
1006 Name: Typst
1007 - Aliases: null
1008 Name: ucode
1009 - Aliases:
1010 - v
1011 - vlang
1012 Name: V
1013 - Aliases:
1014 - vsh
1015 - vshell
1016 Name: V shell
1017 - Aliases:
1018 - vala
1019 - vapi
1020 Name: Vala
1021 - Aliases:
1022 - vb.net
1023 - vbnet
1024 Name: VB.net
1025 - Aliases:
1026 - verilog
1027 - v
1028 Name: verilog
1029 - Aliases:
1030 - vhdl
1031 Name: VHDL
1032 - Aliases:
1033 - vhs
1034 - tape
1035 - cassette
1036 Name: VHS
1037 - Aliases:
1038 - vim
1039 Name: VimL
1040 - Aliases:
1041 - vue
1042 - vuejs
1043 Name: vue
1044 - Aliases: null
1045 Name: WDTE
1046 - Aliases:
1047 - wast
1048 - wat
1049 Name: WebAssembly Text Format
1050 - Aliases:
1051 - wgsl
1052 Name: WebGPU Shading Language
1053 - Aliases:
1054 - vtt
1055 Name: WebVTT
1056 - Aliases:
1057 - whiley
1058 Name: Whiley
1059 - Aliases:
1060 - xml
1061 Name: XML
1062 - Aliases:
1063 - xorg.conf
1064 Name: Xorg
1065 - Aliases:
1066 - yaml
1067 Name: YAML
1068 - Aliases:
1069 - yaml+jinja
1070 - salt
1071 - sls
1072 - ansible
1073 Name: YAML+Jinja
1074 - Aliases:
1075 - yang
1076 Name: YANG
1077 - Aliases:
1078 - z80
1079 Name: Z80 Assembly
1080 - Aliases:
1081 - zed
1082 Name: Zed
1083 - Aliases:
1084 - zig
1085 Name: Zig
1086 styles:
1087 - counterpart: ''
1088 mode: light
1089 name: abap
1090 - counterpart: ''
1091 mode: light
1092 name: algol
1093 - counterpart: ''
1094 mode: light
1095 name: algol_nu
1096 - counterpart: ''
1097 mode: light
1098 name: arduino
1099 - counterpart: ''
1100 mode: dark
1101 name: ashen
1102 - counterpart: ''
1103 mode: dark
1104 name: aura-theme-dark
1105 - counterpart: ''
1106 mode: dark
1107 name: aura-theme-dark-soft
1108 - counterpart: ''
1109 mode: light
1110 name: autumn
1111 - counterpart: ''
1112 mode: dark
1113 name: average
1114 - counterpart: ''
1115 mode: dark
1116 name: base16-snazzy
1117 - counterpart: ''
1118 mode: light
1119 name: borland
1120 - counterpart: ''
1121 mode: light
1122 name: bw
1123 - counterpart: ''
1124 mode: dark
1125 name: catppuccin-frappe
1126 - counterpart: catppuccin-mocha
1127 mode: light
1128 name: catppuccin-latte
1129 - counterpart: ''
1130 mode: dark
1131 name: catppuccin-macchiato
1132 - counterpart: catppuccin-latte
1133 mode: dark
1134 name: catppuccin-mocha
1135 - counterpart: ''
1136 mode: light
1137 name: colorful
1138 - counterpart: ''
1139 mode: dark
1140 name: darcula
1141 - counterpart: ''
1142 mode: dark
1143 name: doom-one
1144 - counterpart: ''
1145 mode: dark
1146 name: doom-one2
1147 - counterpart: ''
1148 mode: dark
1149 name: dracula
1150 - counterpart: ''
1151 mode: light
1152 name: emacs
1153 - counterpart: ''
1154 mode: dark
1155 name: evergarden
1156 - counterpart: ''
1157 mode: light
1158 name: friendly
1159 - counterpart: ''
1160 mode: dark
1161 name: fruity
1162 - counterpart: github-dark
1163 mode: light
1164 name: github
1165 - counterpart: github
1166 mode: dark
1167 name: github-dark
1168 - counterpart: gruvbox-light
1169 mode: dark
1170 name: gruvbox
1171 - counterpart: gruvbox
1172 mode: light
1173 name: gruvbox-light
1174 - counterpart: ''
1175 mode: light
1176 name: hr_high_contrast
1177 - counterpart: ''
1178 mode: light
1179 name: hrdark
1180 - counterpart: ''
1181 mode: light
1182 name: igor
1183 - counterpart: ''
1184 mode: dark
1185 name: kanagawa-dragon
1186 - counterpart: kanagawa-wave
1187 mode: light
1188 name: kanagawa-lotus
1189 - counterpart: kanagawa-lotus
1190 mode: dark
1191 name: kanagawa-wave
1192 - counterpart: ''
1193 mode: light
1194 name: lovelace
1195 - counterpart: ''
1196 mode: light
1197 name: manni
1198 - counterpart: modus-vivendi
1199 mode: light
1200 name: modus-operandi
1201 - counterpart: modus-operandi
1202 mode: dark
1203 name: modus-vivendi
1204 - counterpart: monokailight
1205 mode: dark
1206 name: monokai
1207 - counterpart: monokai
1208 mode: light
1209 name: monokailight
1210 - counterpart: ''
1211 mode: light
1212 name: murphy
1213 - counterpart: ''
1214 mode: dark
1215 name: native
1216 - counterpart: ''
1217 mode: dark
1218 name: nord
1219 - counterpart: ''
1220 mode: dark
1221 name: nordic
1222 - counterpart: ''
1223 mode: dark
1224 name: onedark
1225 - counterpart: ''
1226 mode: light
1227 name: onesenterprise
1228 - counterpart: paraiso-light
1229 mode: dark
1230 name: paraiso-dark
1231 - counterpart: paraiso-dark
1232 mode: light
1233 name: paraiso-light
1234 - counterpart: ''
1235 mode: light
1236 name: pastie
1237 - counterpart: ''
1238 mode: light
1239 name: perldoc
1240 - counterpart: ''
1241 mode: light
1242 name: pygments
1243 - counterpart: ''
1244 mode: light
1245 name: rainbow_dash
1246 - counterpart: rose-pine-dawn
1247 mode: dark
1248 name: rose-pine
1249 - counterpart: rose-pine
1250 mode: light
1251 name: rose-pine-dawn
1252 - counterpart: ''
1253 mode: dark
1254 name: rose-pine-moon
1255 - counterpart: ''
1256 mode: light
1257 name: rpgle
1258 - counterpart: ''
1259 mode: dark
1260 name: rrt
1261 - counterpart: solarized-light
1262 mode: dark
1263 name: solarized-dark
1264 - counterpart: ''
1265 mode: dark
1266 name: solarized-dark256
1267 - counterpart: solarized-dark
1268 mode: light
1269 name: solarized-light
1270 - counterpart: ''
1271 mode: dark
1272 name: swapoff
1273 - counterpart: ''
1274 mode: light
1275 name: tango
1276 - counterpart: tokyonight-night
1277 mode: light
1278 name: tokyonight-day
1279 - counterpart: ''
1280 mode: dark
1281 name: tokyonight-moon
1282 - counterpart: tokyonight-day
1283 mode: dark
1284 name: tokyonight-night
1285 - counterpart: ''
1286 mode: dark
1287 name: tokyonight-storm
1288 - counterpart: ''
1289 mode: light
1290 name: trac
1291 - counterpart: ''
1292 mode: dark
1293 name: vim
1294 - counterpart: ''
1295 mode: light
1296 name: vs
1297 - counterpart: ''
1298 mode: dark
1299 name: vulcan
1300 - counterpart: ''
1301 mode: dark
1302 name: witchhazel
1303 - counterpart: xcode-dark
1304 mode: light
1305 name: xcode
1306 - counterpart: xcode
1307 mode: dark
1308 name: xcode-dark
1309 config:
1310 HTTPCache:
1311 cache:
1312 for:
1313 excludes:
1314 - '**'
1315 includes: null
1316 polls:
1317 - disable: true
1318 for:
1319 excludes: null
1320 includes:
1321 - '**'
1322 high: 0s
1323 low: 0s
1324 respectCacheControlNoStoreInRequest: true
1325 respectCacheControlNoStoreInResponse: false
1326 archeTypeDir: archetypes
1327 assetDir: assets
1328 author: {}
1329 baseURL: ''
1330 build:
1331 buildStats:
1332 disableClasses: false
1333 disableIDs: false
1334 disableTags: false
1335 enable: false
1336 cacheBusters:
1337 - source: '(postcss|tailwind)\.config\.(js|mjs|cjs)'
1338 target: (css|styles|scss|sass)
1339 noJSConfigInAssets: false
1340 useResourceCacheWhen: fallback
1341 buildDrafts: false
1342 buildExpired: false
1343 buildFuture: false
1344 cacheDir: ''
1345 caches:
1346 assets:
1347 dir: :resourceDir/_gen
1348 maxAge: -1
1349 getresource:
1350 dir: :cacheDir/:project
1351 maxAge: -1
1352 images:
1353 dir: :resourceDir/_gen
1354 maxAge: -1
1355 misc:
1356 dir: :cacheDir/:project
1357 maxAge: -1
1358 modulegitinfo:
1359 dir: :cacheDir/modules
1360 maxAge: 24h
1361 modulequeries:
1362 dir: :cacheDir/modules
1363 maxAge: 24h
1364 modules:
1365 dir: :cacheDir/modules
1366 maxAge: -1
1367 canonifyURLs: false
1368 capitalizeListTitles: true
1369 cascade: null
1370 cleanDestinationDir: false
1371 contentDir: content
1372 contentTypes:
1373 text/asciidoc: {}
1374 text/html: {}
1375 text/markdown: {}
1376 text/org: {}
1377 text/pandoc: {}
1378 text/rst: {}
1379 copyright: ''
1380 dataDir: data
1381 defaultContentLanguage: en
1382 defaultContentLanguageInSubdir: false
1383 defaultContentRole: guest
1384 defaultContentRoleInSubdir: false
1385 defaultContentVersion: ''
1386 defaultContentVersionInSubdir: false
1387 defaultOutputFormat: html
1388 deployment:
1389 confirm: false
1390 dryRun: false
1391 force: false
1392 invalidateCDN: true
1393 matchers: null
1394 maxDeletes: 256
1395 order: null
1396 target: ''
1397 targets: null
1398 workers: 10
1399 disableAliases: false
1400 disableDefaultLanguageRedirect: false
1401 disableDefaultSiteRedirect: false
1402 disableHugoGeneratorInject: false
1403 disableKinds: null
1404 disableLanguages: null
1405 disableLiveReload: false
1406 disablePathToLower: false
1407 enableEmoji: false
1408 enableGitInfo: false
1409 enableMissingTranslationPlaceholders: false
1410 enableRobotsTXT: false
1411 environment: production
1412 frontmatter:
1413 date:
1414 - date
1415 - publishdate
1416 - pubdate
1417 - published
1418 - lastmod
1419 - modified
1420 expiryDate:
1421 - expirydate
1422 - unpublishdate
1423 lastmod:
1424 - :git
1425 - lastmod
1426 - modified
1427 - date
1428 - publishdate
1429 - pubdate
1430 - published
1431 publishDate:
1432 - publishdate
1433 - pubdate
1434 - published
1435 - date
1436 hasCJKLanguage: false
1437 i18nDir: i18n
1438 ignoreCache: false
1439 ignoreFiles: null
1440 ignoreLogs: null
1441 ignoreVendorPaths: ''
1442 imaging:
1443 anchor: smart
1444 avif:
1445 compression: lossy
1446 encoderSpeed: 10
1447 hint: photo
1448 quality: 60
1449 bgColor: ffffff
1450 exif:
1451 disableDate: false
1452 disableLatLong: false
1453 excludeFields: GPS|Exif|Exposure[M|P|B]|Contrast|Resolution|Sharp|JPEG|Metering|Sensing|Saturation|ColorSpace|Flash|WhiteBalance
1454 includeFields: ''
1455 jpeg:
1456 quality: 75
1457 meta:
1458 fields:
1459 - '! *{GPS,Exif,Exposure[MPB],Contrast,Resolution,Sharp,JPEG,Metering,Sensing,Saturation,ColorSpace,Flash,WhiteBalance}*'
1460 sources:
1461 - exif
1462 - iptc
1463 resampleFilter: box
1464 webp:
1465 compression: lossy
1466 hint: photo
1467 method: 2
1468 quality: 75
1469 useSharpYuv: false
1470 languages:
1471 en:
1472 direction: ''
1473 disabled: false
1474 label: ''
1475 locale: ''
1476 title: ''
1477 weight: 0
1478 layoutDir: layouts
1479 locale: ''
1480 mainSections: null
1481 markup:
1482 asciiDocExt:
1483 attributes: {}
1484 backend: html5
1485 extensions: []
1486 failureLevel: fatal
1487 noHeaderOrFooter: true
1488 preserveTOC: false
1489 safeMode: unsafe
1490 sectionNumbers: false
1491 trace: false
1492 verbose: false
1493 workingFolderCurrent: false
1494 defaultMarkdownHandler: goldmark
1495 goldmark:
1496 duplicateResourceFiles: false
1497 extensions:
1498 cjk:
1499 eastAsianLineBreaks: false
1500 eastAsianLineBreaksStyle: simple
1501 enable: false
1502 escapedSpace: false
1503 definitionList: true
1504 extras:
1505 delete:
1506 enable: false
1507 insert:
1508 enable: false
1509 mark:
1510 enable: false
1511 subscript:
1512 enable: false
1513 superscript:
1514 enable: false
1515 footnote:
1516 backlinkHTML: '↩︎'
1517 enable: true
1518 enableAutoIDPrefix: false
1519 linkify: true
1520 linkifyProtocol: https
1521 passthrough:
1522 delimiters:
1523 block: []
1524 inline: []
1525 enable: false
1526 strikethrough: true
1527 table: true
1528 taskList: true
1529 typographer:
1530 apostrophe: '’'
1531 disable: false
1532 ellipsis: '…'
1533 emDash: '—'
1534 enDash: '–'
1535 leftAngleQuote: '«'
1536 leftDoubleQuote: '“'
1537 leftSingleQuote: '‘'
1538 rightAngleQuote: '»'
1539 rightDoubleQuote: '”'
1540 rightSingleQuote: '’'
1541 parser:
1542 attribute:
1543 block: false
1544 title: true
1545 autoDefinitionTermID: false
1546 autoHeadingID: true
1547 autoIDType: github
1548 wrapStandAloneImageWithinParagraph: true
1549 renderHooks:
1550 image:
1551 enableDefault: false
1552 useEmbedded: auto
1553 link:
1554 enableDefault: false
1555 useEmbedded: auto
1556 renderer:
1557 hardWraps: false
1558 unsafe: false
1559 xhtml: false
1560 highlight:
1561 anchorLineNos: false
1562 codeFences: true
1563 guessSyntax: false
1564 hl_Lines: ''
1565 hl_inline: false
1566 lineAnchors: ''
1567 lineNoStart: 1
1568 lineNos: false
1569 lineNumbersInTable: true
1570 noClasses: true
1571 style: monokai
1572 tabWidth: 4
1573 wrapperClass: highlight
1574 rst:
1575 syntaxHighlight: long
1576 tableOfContents:
1577 endLevel: 3
1578 ordered: false
1579 startLevel: 2
1580 mediaTypes:
1581 application/json:
1582 delimiter: .
1583 suffixes:
1584 - json
1585 application/manifest+json:
1586 delimiter: .
1587 suffixes:
1588 - webmanifest
1589 application/octet-stream:
1590 delimiter: .
1591 application/pdf:
1592 delimiter: .
1593 suffixes:
1594 - pdf
1595 application/rss+xml:
1596 delimiter: .
1597 suffixes:
1598 - xml
1599 - rss
1600 application/source-map:
1601 delimiter: .
1602 suffixes:
1603 - map
1604 application/toml:
1605 delimiter: .
1606 suffixes:
1607 - toml
1608 application/wasm:
1609 delimiter: .
1610 suffixes:
1611 - wasm
1612 application/xml:
1613 delimiter: .
1614 suffixes:
1615 - xml
1616 application/yaml:
1617 delimiter: .
1618 suffixes:
1619 - yaml
1620 - yml
1621 font/otf:
1622 delimiter: .
1623 suffixes:
1624 - otf
1625 font/ttf:
1626 delimiter: .
1627 suffixes:
1628 - ttf
1629 font/woff:
1630 delimiter: .
1631 suffixes:
1632 - woff
1633 font/woff2:
1634 delimiter: .
1635 suffixes:
1636 - woff2
1637 image/avif:
1638 delimiter: .
1639 suffixes:
1640 - avif
1641 image/bmp:
1642 delimiter: .
1643 suffixes:
1644 - bmp
1645 image/gif:
1646 delimiter: .
1647 suffixes:
1648 - gif
1649 image/heic:
1650 delimiter: .
1651 suffixes:
1652 - heic
1653 image/heif:
1654 delimiter: .
1655 suffixes:
1656 - heif
1657 image/jpeg:
1658 delimiter: .
1659 suffixes:
1660 - jpg
1661 - jpeg
1662 - jpe
1663 - jif
1664 - jfif
1665 image/png:
1666 delimiter: .
1667 suffixes:
1668 - png
1669 image/svg+xml:
1670 delimiter: .
1671 suffixes:
1672 - svg
1673 image/tiff:
1674 delimiter: .
1675 suffixes:
1676 - tif
1677 - tiff
1678 image/webp:
1679 delimiter: .
1680 suffixes:
1681 - webp
1682 text/asciidoc:
1683 delimiter: .
1684 suffixes:
1685 - adoc
1686 - asciidoc
1687 - ad
1688 text/calendar:
1689 delimiter: .
1690 suffixes:
1691 - ics
1692 text/css:
1693 delimiter: .
1694 suffixes:
1695 - css
1696 text/csv:
1697 delimiter: .
1698 suffixes:
1699 - csv
1700 text/html:
1701 delimiter: .
1702 suffixes:
1703 - html
1704 - htm
1705 text/javascript:
1706 delimiter: .
1707 suffixes:
1708 - js
1709 - jsm
1710 - mjs
1711 text/jsx:
1712 delimiter: .
1713 suffixes:
1714 - jsx
1715 text/markdown:
1716 delimiter: .
1717 suffixes:
1718 - md
1719 - mdown
1720 - markdown
1721 text/org:
1722 delimiter: .
1723 suffixes:
1724 - org
1725 text/pandoc:
1726 delimiter: .
1727 suffixes:
1728 - pandoc
1729 - pdc
1730 text/plain:
1731 delimiter: .
1732 suffixes:
1733 - txt
1734 text/rst:
1735 delimiter: .
1736 suffixes:
1737 - rst
1738 text/tsx:
1739 delimiter: .
1740 suffixes:
1741 - tsx
1742 text/typescript:
1743 delimiter: .
1744 suffixes:
1745 - ts
1746 text/x-gotmpl:
1747 delimiter: .
1748 suffixes:
1749 - gotmpl
1750 text/x-sass:
1751 delimiter: .
1752 suffixes:
1753 - sass
1754 text/x-scss:
1755 delimiter: .
1756 suffixes:
1757 - scss
1758 video/3gpp:
1759 delimiter: .
1760 suffixes:
1761 - 3gpp
1762 - 3gp
1763 video/mp4:
1764 delimiter: .
1765 suffixes:
1766 - mp4
1767 video/mpeg:
1768 delimiter: .
1769 suffixes:
1770 - mpg
1771 - mpeg
1772 video/ogg:
1773 delimiter: .
1774 suffixes:
1775 - ogv
1776 video/webm:
1777 delimiter: .
1778 suffixes:
1779 - webm
1780 video/x-msvideo:
1781 delimiter: .
1782 suffixes:
1783 - avi
1784 menus: {}
1785 minify:
1786 disableCSS: false
1787 disableHTML: false
1788 disableJS: false
1789 disableJSON: false
1790 disableSVG: false
1791 disableXML: false
1792 minifyOutput: false
1793 tdewolff:
1794 css:
1795 inline: false
1796 precision: 0
1797 version: 0
1798 html:
1799 keepComments: false
1800 keepConditionalComments: false
1801 keepDefaultAttrVals: true
1802 keepDocumentTags: true
1803 keepEndTags: true
1804 keepQuotes: false
1805 keepSpecialComments: true
1806 keepWhitespace: false
1807 templateDelims:
1808 - ''
1809 - ''
1810 js:
1811 keepVarNames: false
1812 precision: 0
1813 version: 2022
1814 json:
1815 keepNumbers: false
1816 precision: 0
1817 svg:
1818 keepComments: false
1819 keepNamespaces:
1820 - ''
1821 - x-bind
1822 precision: 0
1823 xml:
1824 keepWhitespace: false
1825 module:
1826 auth: ''
1827 hugoVersion:
1828 extended: false
1829 max: ''
1830 min: ''
1831 imports: null
1832 mounts:
1833 - disableWatch: false
1834 files: null
1835 sites:
1836 complements:
1837 languages: null
1838 roles: null
1839 versions: null
1840 matrix:
1841 languages: null
1842 roles: null
1843 versions: null
1844 source: content
1845 target: content
1846 - disableWatch: false
1847 files: null
1848 sites:
1849 complements:
1850 languages: null
1851 roles: null
1852 versions: null
1853 matrix:
1854 languages: null
1855 roles: null
1856 versions: null
1857 source: data
1858 target: data
1859 - disableWatch: false
1860 files: null
1861 sites:
1862 complements:
1863 languages: null
1864 roles: null
1865 versions: null
1866 matrix:
1867 languages: null
1868 roles: null
1869 versions: null
1870 source: layouts
1871 target: layouts
1872 - disableWatch: false
1873 files: null
1874 sites:
1875 complements:
1876 languages: null
1877 roles: null
1878 versions: null
1879 matrix:
1880 languages: null
1881 roles: null
1882 versions: null
1883 source: i18n
1884 target: i18n
1885 - disableWatch: false
1886 files: null
1887 sites:
1888 complements:
1889 languages: null
1890 roles: null
1891 versions: null
1892 matrix:
1893 languages: null
1894 roles: null
1895 versions: null
1896 source: archetypes
1897 target: archetypes
1898 - disableWatch: false
1899 files: null
1900 sites:
1901 complements:
1902 languages: null
1903 roles: null
1904 versions: null
1905 matrix:
1906 languages: null
1907 roles: null
1908 versions: null
1909 source: assets
1910 target: assets
1911 - disableWatch: false
1912 files: null
1913 sites:
1914 complements:
1915 languages: null
1916 roles: null
1917 versions: null
1918 matrix:
1919 languages: null
1920 roles: null
1921 versions: null
1922 source: static
1923 target: static
1924 noProxy: none
1925 noVendor: ''
1926 params: null
1927 private: '*.*'
1928 proxy: direct
1929 replacements: null
1930 vendorClosest: false
1931 workspace: 'off'
1932 newContentEditor: ''
1933 noBuildLock: false
1934 noChmod: false
1935 noTimes: false
1936 outputFormats:
1937 '404':
1938 baseName: ''
1939 isHTML: true
1940 isPlainText: false
1941 mediaType: text/html
1942 noUgly: false
1943 notAlternative: true
1944 path: ''
1945 permalinkable: true
1946 protocol: ''
1947 rel: ''
1948 root: false
1949 ugly: true
1950 weight: 0
1951 alias:
1952 baseName: ''
1953 isHTML: true
1954 isPlainText: false
1955 mediaType: text/html
1956 noUgly: false
1957 notAlternative: false
1958 path: ''
1959 permalinkable: false
1960 protocol: ''
1961 rel: ''
1962 root: false
1963 ugly: true
1964 weight: 0
1965 amp:
1966 baseName: index
1967 isHTML: true
1968 isPlainText: false
1969 mediaType: text/html
1970 noUgly: false
1971 notAlternative: false
1972 path: amp
1973 permalinkable: true
1974 protocol: ''
1975 rel: amphtml
1976 root: false
1977 ugly: false
1978 weight: 0
1979 calendar:
1980 baseName: index
1981 isHTML: false
1982 isPlainText: true
1983 mediaType: text/calendar
1984 noUgly: false
1985 notAlternative: false
1986 path: ''
1987 permalinkable: false
1988 protocol: webcal://
1989 rel: alternate
1990 root: false
1991 ugly: false
1992 weight: 0
1993 css:
1994 baseName: styles
1995 isHTML: false
1996 isPlainText: true
1997 mediaType: text/css
1998 noUgly: false
1999 notAlternative: true
2000 path: ''
2001 permalinkable: false
2002 protocol: ''
2003 rel: stylesheet
2004 root: false
2005 ugly: false
2006 weight: 0
2007 csv:
2008 baseName: index
2009 isHTML: false
2010 isPlainText: true
2011 mediaType: text/csv
2012 noUgly: false
2013 notAlternative: false
2014 path: ''
2015 permalinkable: false
2016 protocol: ''
2017 rel: alternate
2018 root: false
2019 ugly: false
2020 weight: 0
2021 gotmpl:
2022 baseName: ''
2023 isHTML: false
2024 isPlainText: true
2025 mediaType: text/x-gotmpl
2026 noUgly: false
2027 notAlternative: true
2028 path: ''
2029 permalinkable: false
2030 protocol: ''
2031 rel: ''
2032 root: false
2033 ugly: false
2034 weight: 0
2035 html:
2036 baseName: index
2037 isHTML: true
2038 isPlainText: false
2039 mediaType: text/html
2040 noUgly: false
2041 notAlternative: false
2042 path: ''
2043 permalinkable: true
2044 protocol: ''
2045 rel: canonical
2046 root: false
2047 ugly: false
2048 weight: 10
2049 json:
2050 baseName: index
2051 isHTML: false
2052 isPlainText: true
2053 mediaType: application/json
2054 noUgly: false
2055 notAlternative: false
2056 path: ''
2057 permalinkable: false
2058 protocol: ''
2059 rel: alternate
2060 root: false
2061 ugly: false
2062 weight: 0
2063 markdown:
2064 baseName: index
2065 isHTML: false
2066 isPlainText: true
2067 mediaType: text/markdown
2068 noUgly: false
2069 notAlternative: false
2070 path: ''
2071 permalinkable: false
2072 protocol: ''
2073 rel: alternate
2074 root: false
2075 ugly: false
2076 weight: 0
2077 robots:
2078 baseName: robots
2079 isHTML: false
2080 isPlainText: true
2081 mediaType: text/plain
2082 noUgly: false
2083 notAlternative: false
2084 path: ''
2085 permalinkable: false
2086 protocol: ''
2087 rel: alternate
2088 root: true
2089 ugly: false
2090 weight: 0
2091 rss:
2092 baseName: index
2093 isHTML: false
2094 isPlainText: false
2095 mediaType: application/rss+xml
2096 noUgly: true
2097 notAlternative: false
2098 path: ''
2099 permalinkable: false
2100 protocol: ''
2101 rel: alternate
2102 root: false
2103 ugly: false
2104 weight: 0
2105 sitemap:
2106 baseName: sitemap
2107 isHTML: false
2108 isPlainText: false
2109 mediaType: application/xml
2110 noUgly: false
2111 notAlternative: false
2112 path: ''
2113 permalinkable: false
2114 protocol: ''
2115 rel: sitemap
2116 root: false
2117 ugly: true
2118 weight: 0
2119 sitemapindex:
2120 baseName: sitemap
2121 isHTML: false
2122 isPlainText: false
2123 mediaType: application/xml
2124 noUgly: false
2125 notAlternative: false
2126 path: ''
2127 permalinkable: false
2128 protocol: ''
2129 rel: sitemap
2130 root: true
2131 ugly: true
2132 weight: 0
2133 webappmanifest:
2134 baseName: manifest
2135 isHTML: false
2136 isPlainText: true
2137 mediaType: application/manifest+json
2138 noUgly: false
2139 notAlternative: true
2140 path: ''
2141 permalinkable: false
2142 protocol: ''
2143 rel: manifest
2144 root: false
2145 ugly: false
2146 weight: 0
2147 outputs:
2148 home:
2149 - html
2150 - rss
2151 page:
2152 - html
2153 rss:
2154 - rss
2155 section:
2156 - html
2157 - rss
2158 taxonomy:
2159 - html
2160 - rss
2161 term:
2162 - html
2163 - rss
2164 page:
2165 nextPrevInSectionSortOrder: desc
2166 nextPrevSortOrder: desc
2167 pagination:
2168 disableAliases: false
2169 pagerSize: 10
2170 path: page
2171 panicOnWarning: false
2172 params: {}
2173 permalinks: null
2174 pluralizeListTitles: true
2175 printI18nWarnings: false
2176 printPathWarnings: false
2177 printUnusedTemplates: false
2178 privacy:
2179 disqus:
2180 disable: false
2181 googleAnalytics:
2182 disable: false
2183 respectDoNotTrack: true
2184 instagram:
2185 disable: false
2186 simple: false
2187 vimeo:
2188 disable: false
2189 enableDNT: false
2190 simple: false
2191 x:
2192 disable: false
2193 enableDNT: false
2194 simple: false
2195 youTube:
2196 disable: false
2197 privacyEnhanced: false
2198 publishDir: public
2199 refLinksErrorLevel: ''
2200 refLinksNotFoundURL: ''
2201 related:
2202 includeNewer: false
2203 indices:
2204 - applyFilter: false
2205 cardinalityThreshold: 0
2206 minTokenLength: 0
2207 name: keywords
2208 pattern: ''
2209 toLower: false
2210 tokenize: false
2211 type: basic
2212 weight: 100
2213 - applyFilter: false
2214 cardinalityThreshold: 0
2215 minTokenLength: 0
2216 name: date
2217 pattern: ''
2218 toLower: false
2219 tokenize: false
2220 type: basic
2221 weight: 10
2222 - applyFilter: false
2223 cardinalityThreshold: 0
2224 minTokenLength: 0
2225 name: tags
2226 pattern: ''
2227 toLower: false
2228 tokenize: false
2229 type: basic
2230 weight: 80
2231 threshold: 80
2232 toLower: false
2233 relativeURLs: false
2234 removePathAccents: false
2235 renderSegments: null
2236 resourceDir: resources
2237 roles:
2238 guest:
2239 weight: 0
2240 sectionPagesMenu: ''
2241 security:
2242 allowContent:
2243 - '! ^text/html$'
2244 - '! ^text/org$'
2245 enableInlineShortcodes: false
2246 exec:
2247 allow:
2248 - ^(dart-)?sass$
2249 - ^go$
2250 - ^git$
2251 - ^node$
2252 - ^postcss$
2253 osEnv:
2254 - '(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+|(XDG_CONFIG_)?HOME|USERPROFILE|SSH_AUTH_SOCK|DISPLAY|LANG|SYSTEMDRIVE|PROGRAMDATA)$'
2255 funcs:
2256 getenv:
2257 - ^HUGO_
2258 - ^CI$
2259 http:
2260 mediaTypes: null
2261 methods:
2262 - (?i)GET|POST
2263 proxyFromEnvironment: false
2264 urls:
2265 - (?i)^https?://[a-z0-9]
2266 - '! (?i)^https?://\d+\.'
2267 - '! (?i)localhost'
2268 - '! (?i)^https?://[^/?#]*@'
2269 node:
2270 permissions:
2271 allowAddons:
2272 - tailwindcss
2273 allowChildProcess:
2274 - tailwindcss
2275 allowRead:
2276 - .
2277 allowWorker:
2278 - tailwindcss
2279 allowWrite: []
2280 disable: false
2281 segments: {}
2282 server:
2283 headers: null
2284 redirects:
2285 - force: false
2286 from: /**
2287 fromHeaders: null
2288 fromRe: ''
2289 status: 404
2290 to: /404.html
2291 services:
2292 disqus:
2293 shortname: ''
2294 googleAnalytics:
2295 id: ''
2296 rss:
2297 limit: -1
2298 x:
2299 disableInlineCSS: false
2300 sitemap:
2301 changeFreq: ''
2302 disable: false
2303 filename: sitemap.xml
2304 priority: -1
2305 social: null
2306 staticDir:
2307 - static
2308 staticDir0: null
2309 staticDir1: null
2310 staticDir10: null
2311 staticDir2: null
2312 staticDir3: null
2313 staticDir4: null
2314 staticDir5: null
2315 staticDir6: null
2316 staticDir7: null
2317 staticDir8: null
2318 staticDir9: null
2319 summaryLength: 70
2320 taxonomies:
2321 category: categories
2322 tag: tags
2323 templateMetrics: false
2324 templateMetricsHints: false
2325 theme: null
2326 themesDir: themes
2327 timeZone: ''
2328 timeout: 60s
2329 title: ''
2330 titleCaseStyle: AP
2331 uglyURLs: {}
2332 versions:
2333 v1.0.0:
2334 weight: 0
2335 workingDir: ''
2336 config_helpers:
2337 mergeStrategy:
2338 build:
2339 _merge: none
2340 caches:
2341 _merge: none
2342 cascade:
2343 _merge: none
2344 contenttypes:
2345 _merge: none
2346 deployment:
2347 _merge: none
2348 frontmatter:
2349 _merge: none
2350 httpcache:
2351 _merge: none
2352 imaging:
2353 _merge: none
2354 languages:
2355 _merge: none
2356 en:
2357 _merge: none
2358 menus:
2359 _merge: shallow
2360 params:
2361 _merge: deep
2362 markup:
2363 _merge: none
2364 mediatypes:
2365 _merge: shallow
2366 menus:
2367 _merge: shallow
2368 minify:
2369 _merge: none
2370 module:
2371 _merge: none
2372 outputformats:
2373 _merge: shallow
2374 outputs:
2375 _merge: none
2376 page:
2377 _merge: none
2378 pagination:
2379 _merge: none
2380 params:
2381 _merge: deep
2382 permalinks:
2383 _merge: none
2384 privacy:
2385 _merge: none
2386 related:
2387 _merge: none
2388 roles:
2389 _merge: none
2390 security:
2391 _merge: none
2392 segments:
2393 _merge: none
2394 server:
2395 _merge: none
2396 services:
2397 _merge: none
2398 sitemap:
2399 _merge: none
2400 taxonomies:
2401 _merge: none
2402 versions:
2403 _merge: none
2404 output:
2405 layouts: {}
2406 tpl:
2407 funcs:
2408 cast:
2409 ToFloat:
2410 Aliases:
2411 - float
2412 Args:
2413 - v
2414 Description: ToFloat converts v to a float.
2415 Examples:
2416 - - '{{ "1234" | float | printf "%T" }}'
2417 - float64
2418 ToInt:
2419 Aliases:
2420 - int
2421 Args:
2422 - v
2423 Description: ToInt converts v to an int.
2424 Examples:
2425 - - '{{ "1234" | int | printf "%T" }}'
2426 - int
2427 ToString:
2428 Aliases:
2429 - string
2430 Args:
2431 - v
2432 Description: ToString converts v to a string.
2433 Examples:
2434 - - '{{ 1234 | string | printf "%T" }}'
2435 - string
2436 collections:
2437 After:
2438 Aliases:
2439 - after
2440 Args:
2441 - 'n'
2442 - l
2443 Description: After returns all the items after the first n items in list l.
2444 Examples: []
2445 Append:
2446 Aliases:
2447 - append
2448 Args:
2449 - args
2450 Description: |-
2451 Append appends args up to the last one to the slice in the last argument.
2452 This construct allows template constructs like this:
2453
2454 {{ $pages = $pages | append $p2 $p1 }}
2455
2456 Note that with 2 arguments where both are slices of the same type,
2457 the first slice will be appended to the second:
2458
2459 {{ $pages = $pages | append .Site.RegularPages }}
2460 Examples: []
2461 Apply:
2462 Aliases:
2463 - apply
2464 Args:
2465 - ctx
2466 - c
2467 - fname
2468 - args
2469 Description: Apply takes an array or slice c and returns a new slice with the function fname applied over it.
2470 Examples: []
2471 Complement:
2472 Aliases:
2473 - complement
2474 Args:
2475 - ls
2476 Description: |-
2477 Complement gives the elements in the last element of ls that are not in
2478 any of the others.
2479
2480 All elements of ls must be slices or arrays of comparable types.
2481
2482 The reasoning behind this rather clumsy API is so we can do this in the templates:
2483
2484 {{ $c := .Pages | complement $last4 }}
2485 Examples:
2486 - - '{{ slice "a" "b" "c" "d" "e" "f" | complement (slice "b" "c") (slice "d" "e") }}'
2487 - '[a f]'
2488 D:
2489 Aliases: null
2490 Args:
2491 - seed
2492 - 'n'
2493 - hi
2494 Description: 'D returns a sorted slice of unique random integers in the half-open interval\n[0, hi) using the provided seed value. The number of elements in the\nresulting slice is n or hi, whichever is less.\n\nIf n <= hi, it returns a sorted random sample of size n using J. S. Vitter’s\nMethod D for sequential random sampling.\n\nIf n > hi, it returns the full, sorted range [0, hi) of size hi.\n\nIf n == 0 or hi == 0, it returns an empty slice.\n\nReference:\n\n\tJ. S. Vitter, "An efficient algorithm for sequential random sampling," ACM Trans. Math. Softw., vol. 11, no. 1, pp. 37–57, 1985.\n\tSee also: https://getkerf.wordpress.com/2016/03/30/the-best-algorithm-no-one-knows-about/'
2495 Examples: []
2496 Delimit:
2497 Aliases:
2498 - delimit
2499 Args:
2500 - ctx
2501 - l
2502 - sep
2503 - last
2504 Description: |-
2505 Delimit takes a given list l and returns a string delimited by sep.
2506 If last is passed to the function, it will be used as the final delimiter.
2507 Examples:
2508 - - '{{ delimit (slice "A" "B" "C") ", " " and " }}'
2509 - A, B and C
2510 Dictionary:
2511 Aliases:
2512 - dict
2513 Args:
2514 - values
2515 Description: |-
2516 Dictionary creates a new map from the given parameters by
2517 treating values as key-value pairs. The number of values must be even.
2518 The keys can be string slices, which will create the needed nested structure.
2519 Examples: []
2520 First:
2521 Aliases:
2522 - first
2523 Args:
2524 - limit
2525 - l
2526 Description: First returns the first limit items in list l.
2527 Examples: []
2528 Group:
2529 Aliases:
2530 - group
2531 Args:
2532 - key
2533 - items
2534 Description: |-
2535 Group groups a set of items by the given key.
2536 This is currently only supported for Pages.
2537 Examples: []
2538 In:
2539 Aliases:
2540 - in
2541 Args:
2542 - l
2543 - v
2544 Description: In returns whether v is in the list l. l may be an array or slice.
2545 Examples:
2546 - - '{{ if in "this string contains a substring" "substring" }}Substring found!{{ end }}'
2547 - Substring found!
2548 Index:
2549 Aliases:
2550 - index
2551 Args:
2552 - item
2553 - args
2554 Description: |-
2555 Index returns the result of indexing its first argument by the following
2556 arguments. Thus "index x 1 2 3" is, in Go syntax, x[1][2][3]. Each
2557 indexed item must be a map, slice, or array.
2558
2559 Adapted from Go stdlib src/text/template/funcs.go.
2560
2561 We deviate from the stdlib mostly because of https://github.com/golang/go/issues/14751.
2562 Examples: []
2563 Intersect:
2564 Aliases:
2565 - intersect
2566 Args:
2567 - l1
2568 - l2
2569 Description: |-
2570 Intersect returns the common elements in the given sets, l1 and l2. l1 and
2571 l2 must be of the same type and may be either arrays or slices.
2572 Examples: []
2573 IsSet:
2574 Aliases:
2575 - isSet
2576 - isset
2577 Args:
2578 - c
2579 - key
2580 Description: |-
2581 IsSet returns whether a given array, channel, slice, or map in c has the given key
2582 defined.
2583 Examples: []
2584 KeyVals:
2585 Aliases:
2586 - keyVals
2587 Args:
2588 - key
2589 - values
2590 Description: KeyVals creates a key and values wrapper.
2591 Examples:
2592 - - '{{ keyVals "key" "a" "b" }}'
2593 - 'key: [a b]'
2594 Last:
2595 Aliases:
2596 - last
2597 Args:
2598 - limit
2599 - l
2600 Description: Last returns the last limit items in the list l.
2601 Examples: []
2602 Merge:
2603 Aliases:
2604 - merge
2605 Args:
2606 - params
2607 Description: |-
2608 Merge creates a copy of the final parameter in params and merges the preceding
2609 parameters into it in reverse order.
2610
2611 Currently only maps are supported. Key handling is case insensitive.
2612 Examples:
2613 - - '{{ dict "title" "Hugo Rocks!" | collections.Merge (dict "title" "Default Title" "description" "Yes, Hugo Rocks!") | sort }}'
2614 - '[Yes, Hugo Rocks! Hugo Rocks!]'
2615 - - '{{ merge (dict "title" "Default Title" "description" "Yes, Hugo Rocks!") (dict "title" "Hugo Rocks!") | sort }}'
2616 - '[Yes, Hugo Rocks! Hugo Rocks!]'
2617 - - '{{ merge (dict "title" "Default Title" "description" "Yes, Hugo Rocks!") (dict "title" "Hugo Rocks!") (dict "extra" "For reals!") | sort }}'
2618 - '[Yes, Hugo Rocks! For reals! Hugo Rocks!]'
2619 NewScratch:
2620 Aliases:
2621 - newScratch
2622 Args: null
2623 Description: |-
2624 NewScratch creates a new Scratch which can be used to store values in a
2625 thread safe way.
2626 Examples:
2627 - - '{{ $scratch := newScratch }}{{ $scratch.Add "b" 2 }}{{ $scratch.Add "b" 2 }}{{ $scratch.Get "b" }}'
2628 - '4'
2629 Querify:
2630 Aliases:
2631 - querify
2632 Args:
2633 - params
2634 Description: |-
2635 Querify returns a URL query string composed of the given key-value pairs,
2636 encoded and sorted by key.
2637 Examples:
2638 - - '{{ (querify "foo" 1 "bar" 2 "baz" "with spaces" "qux" "this&that=those") | safeHTML }}'
2639 - bar=2&baz=with+spaces&foo=1&qux=this%26that%3Dthose
2640 - - <a href="https://www.google.com?{{ (querify "q" "test" "page" 3) | safeURL }}">Search</a>
2641 - <a href="https://www.google.com?page=3&amp;q=test">Search</a>
2642 - - '{{ slice "foo" 1 "bar" 2 | querify | safeHTML }}'
2643 - bar=2&foo=1
2644 Reverse:
2645 Aliases: null
2646 Args:
2647 - l
2648 Description: Reverse creates a copy of the list l and reverses it.
2649 Examples: []
2650 Seq:
2651 Aliases:
2652 - seq
2653 Args:
2654 - args
2655 Description: |-
2656 Seq creates a sequence of integers from args. It's named and used as GNU's seq.
2657
2658 Examples:
2659
2660 3 => 1, 2, 3
2661 1 2 4 => 1, 3
2662 -3 => -1, -2, -3
2663 1 4 => 1, 2, 3, 4
2664 1 -2 => 1, 0, -1, -2
2665 Examples:
2666 - - '{{ seq 3 }}'
2667 - '[1 2 3]'
2668 Shuffle:
2669 Aliases:
2670 - shuffle
2671 Args:
2672 - l
2673 Description: Shuffle returns list l in a randomized order.
2674 Examples: []
2675 Slice:
2676 Aliases:
2677 - slice
2678 Args:
2679 - args
2680 Description: Slice returns a slice of all passed arguments.
2681 Examples:
2682 - - '{{ slice "B" "C" "A" | sort }}'
2683 - '[A B C]'
2684 Sort:
2685 Aliases:
2686 - sort
2687 Args:
2688 - ctx
2689 - l
2690 - args
2691 Description: Sort returns a sorted copy of the list l.
2692 Examples: []
2693 SymDiff:
2694 Aliases:
2695 - symdiff
2696 Args:
2697 - s2
2698 - s1
2699 Description: |-
2700 SymDiff returns the symmetric difference of s1 and s2.
2701 Arguments must be either a slice or an array of comparable types.
2702 Examples:
2703 - - '{{ slice 1 2 3 | symdiff (slice 3 4) }}'
2704 - '[1 2 4]'
2705 Union:
2706 Aliases:
2707 - union
2708 Args:
2709 - l1
2710 - l2
2711 Description: |-
2712 Union returns the union of the given sets, l1 and l2. l1 and
2713 l2 must be of the same type and may be either arrays or slices.
2714 If l1 and l2 aren't of the same type then l1 will be returned.
2715 If either l1 or l2 is nil then the non-nil list will be returned.
2716 Examples:
2717 - - '{{ union (slice 1 2 3) (slice 3 4 5) }}'
2718 - '[1 2 3 4 5]'
2719 Uniq:
2720 Aliases:
2721 - uniq
2722 Args:
2723 - l
2724 Description: Uniq returns a new list with duplicate elements in the list l removed.
2725 Examples:
2726 - - '{{ slice 1 2 3 2 | uniq }}'
2727 - '[1 2 3]'
2728 Where:
2729 Aliases:
2730 - where
2731 Args:
2732 - ctx
2733 - c
2734 - key
2735 - args
2736 Description: Where returns a filtered subset of collection c.
2737 Examples: []
2738 compare:
2739 Conditional:
2740 Aliases:
2741 - cond
2742 Args:
2743 - cond
2744 - v1
2745 - v2
2746 Description: |-
2747 Conditional can be used as a ternary operator.
2748
2749 It returns v1 if cond is true, else v2.
2750 Examples:
2751 - - '{{ cond (eq (add 2 2) 4) "2+2 is 4" "what?" | safeHTML }}'
2752 - 2+2 is 4
2753 Default:
2754 Aliases:
2755 - default
2756 Args:
2757 - defaultv
2758 - givenv
2759 Description: |-
2760 Default checks whether a givenv is set and returns the default value defaultv if it
2761 is not. "Set" in this context means non-zero for numeric types and times;
2762 non-zero length for strings, arrays, slices, and maps;
2763 any boolean or struct value; or non-nil for any other types.
2764 Examples:
2765 - - '{{ "Hugo Rocks!" | default "Hugo Rules!" }}'
2766 - Hugo Rocks!
2767 - - '{{ "" | default "Hugo Rules!" }}'
2768 - Hugo Rules!
2769 Eq:
2770 Aliases:
2771 - eq
2772 Args:
2773 - first
2774 - others
2775 Description: Eq returns the boolean truth of arg1 == arg2 || arg1 == arg3 || arg1 == arg4.
2776 Examples:
2777 - - '{{ if eq .Section "blog" }}current-section{{ end }}'
2778 - current-section
2779 Ge:
2780 Aliases:
2781 - ge
2782 Args:
2783 - first
2784 - others
2785 Description: Ge returns the boolean truth of arg1 >= arg2 && arg1 >= arg3 && arg1 >= arg4.
2786 Examples:
2787 - - '{{ if ge hugo.Version "0.80" }}Reasonable new Hugo version!{{ end }}'
2788 - Reasonable new Hugo version!
2789 Gt:
2790 Aliases:
2791 - gt
2792 Args:
2793 - first
2794 - others
2795 Description: Gt returns the boolean truth of arg1 > arg2 && arg1 > arg3 && arg1 > arg4.
2796 Examples: []
2797 Le:
2798 Aliases:
2799 - le
2800 Args:
2801 - first
2802 - others
2803 Description: Le returns the boolean truth of arg1 <= arg2 && arg1 <= arg3 && arg1 <= arg4.
2804 Examples: []
2805 Lt:
2806 Aliases:
2807 - lt
2808 Args:
2809 - first
2810 - others
2811 Description: Lt returns the boolean truth of arg1 < arg2 && arg1 < arg3 && arg1 < arg4.
2812 Examples: []
2813 LtCollate:
2814 Aliases: null
2815 Args:
2816 - collator
2817 - first
2818 - others
2819 Description: |-
2820 LtCollate returns the boolean truth of arg1 < arg2 && arg1 < arg3 && arg1 < arg4.
2821 The provided collator will be used for string comparisons.
2822 This is for internal use.
2823 Examples: []
2824 Ne:
2825 Aliases:
2826 - ne
2827 Args:
2828 - first
2829 - others
2830 Description: Ne returns the boolean truth of arg1 != arg2 && arg1 != arg3 && arg1 != arg4.
2831 Examples: []
2832 crypto:
2833 HMAC:
2834 Aliases:
2835 - hmac
2836 Args:
2837 - h
2838 - k
2839 - m
2840 - e
2841 Description: HMAC returns a cryptographic hash that uses a key to sign a message.
2842 Examples:
2843 - - '{{ hmac "sha256" "Secret key" "Hello world, gophers!" }}'
2844 - b6d11b6c53830b9d87036272ca9fe9d19306b8f9d8aa07b15da27d89e6e34f40
2845 Hash:
2846 Aliases: null
2847 Args:
2848 - args
2849 Description: |-
2850 Hash returns the hex-encoded checksum of v using the given algorithm; one of
2851 md5, sha1, sha256 (the default), sha384 or sha512.
2852
2853 The supported algorithms match those used for the Subresource Integrity (SRI)
2854 hash in .Data.Integrity on fingerprinted resources, so an SRI hash can be
2855 constructed by combining this with encoding.HexDecode and encoding.Base64Encode.
2856 Examples:
2857 - - '{{ crypto.Hash "sha256" "Hello world, gophers!" }}'
2858 - 6ec43b78da9669f50e4e422575c54bf87536954ccd58280219c393f2ce352b46
2859 - - '{{ "Hello world" | crypto.Hash "sha256" }}'
2860 - 64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c
2861 - - '{{ "Hello world" | crypto.Hash }}'
2862 - 64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c
2863 - - '{{ "Hello world" | crypto.Hash "sha512" }}'
2864 - b7f783baed8297f0db917462184ff4f08e69c2d5e5f79a942600f9725f58ce1f29c18139bf80b06c0fff2bdd34738452ecf40c488c22a7e3d80cdf6f9c1c0d47
2865 MD5:
2866 Aliases:
2867 - md5
2868 Args:
2869 - v
2870 Description: MD5 hashes the v and returns its MD5 checksum.
2871 Examples:
2872 - - '{{ md5 "Hello world, gophers!" }}'
2873 - b3029f756f98f79e7f1b7f1d1f0dd53b
2874 - - '{{ crypto.MD5 "Hello world, gophers!" }}'
2875 - b3029f756f98f79e7f1b7f1d1f0dd53b
2876 SHA1:
2877 Aliases:
2878 - sha1
2879 Args:
2880 - v
2881 Description: SHA1 hashes v and returns its SHA1 checksum.
2882 Examples:
2883 - - '{{ sha1 "Hello world, gophers!" }}'
2884 - c8b5b0e33d408246e30f53e32b8f7627a7a649d4
2885 SHA256:
2886 Aliases:
2887 - sha256
2888 Args:
2889 - v
2890 Description: SHA256 hashes v and returns its SHA256 checksum.
2891 Examples:
2892 - - '{{ sha256 "Hello world, gophers!" }}'
2893 - 6ec43b78da9669f50e4e422575c54bf87536954ccd58280219c393f2ce352b46
2894 css:
2895 Build:
2896 Aliases: null
2897 Args:
2898 - args
2899 Description: |-
2900 Build processes the given CSS Resource with ESBuild.
2901 Note that this method is identical to the one in the js Namespace.
2902 Examples: []
2903 ChromaStyles:
2904 Aliases: null
2905 Args:
2906 - opts
2907 Description: |-
2908 ChromaStyles generates a CSS stylesheet for the Chroma code highlighter
2909 and returns it as a Resource. This stylesheet is needed if
2910 markup.highlight.noClasses is disabled in config.
2911 The style defaults to the markup.highlight.style config setting.
2912 Examples: []
2913 PostCSS:
2914 Aliases:
2915 - postCSS
2916 Args:
2917 - args
2918 Description: PostCSS processes the given Resource with PostCSS.
2919 Examples: []
2920 Quoted:
2921 Aliases: null
2922 Args:
2923 - v
2924 Description: Quoted returns a string that needs to be quoted in CSS.
2925 Examples: []
2926 Sass:
2927 Aliases:
2928 - toCSS
2929 Args:
2930 - args
2931 Description: Sass processes the given Resource with SASS.
2932 Examples: []
2933 TailwindCSS:
2934 Aliases: null
2935 Args:
2936 - args
2937 Description: TailwindCSS processes the given Resource with tailwindcss.
2938 Examples: []
2939 Unquoted:
2940 Aliases: null
2941 Args:
2942 - v
2943 Description: Unquoted returns a string that does not need to be quoted in CSS.
2944 Examples: []
2945 debug:
2946 Dump:
2947 Aliases: null
2948 Args:
2949 - val
2950 Description: |-
2951 Dump returns a object dump of val as a string.
2952 Note that not every value passed to Dump will print so nicely, but
2953 we'll improve on that.
2954
2955 We recommend using the "go" Chroma lexer to format the output
2956 nicely.
2957
2958 Also note that the output from Dump may change from Hugo version to the next,
2959 so don't depend on a specific output.
2960 Examples:
2961 - - '{{ $m := newScratch }}\n{{ $m.Set "Hugo" "Rocks!" }}\n{{ $m.Values | debug.Dump | safeHTML }}'
2962 - '{\n "Hugo": "Rocks!"\n}'
2963 TestDeprecationErr:
2964 Aliases: null
2965 Args:
2966 - item
2967 - alternative
2968 Description: Internal template func, used in tests only.
2969 Examples: []
2970 TestDeprecationInfo:
2971 Aliases: null
2972 Args:
2973 - item
2974 - alternative
2975 Description: Internal template func, used in tests only.
2976 Examples: []
2977 TestDeprecationWarn:
2978 Aliases: null
2979 Args:
2980 - item
2981 - alternative
2982 Description: Internal template func, used in tests only.
2983 Examples: []
2984 Timer:
2985 Aliases: null
2986 Args:
2987 - name
2988 Description: ''
2989 Examples: []
2990 VisualizeSpaces:
2991 Aliases: null
2992 Args:
2993 - val
2994 Description: VisualizeSpaces returns a string with spaces replaced by a visible string.
2995 Examples: []
2996 diagrams:
2997 Goat:
2998 Aliases: null
2999 Args:
3000 - v
3001 Description: Goat creates a new SVG diagram from input v.
3002 Examples: []
3003 encoding:
3004 Base64Decode:
3005 Aliases:
3006 - base64Decode
3007 Args:
3008 - content
3009 Description: Base64Decode returns the base64 decoding of the given content.
3010 Examples:
3011 - - '{{ "SGVsbG8gd29ybGQ=" | base64Decode }}'
3012 - Hello world
3013 - - '{{ 42 | base64Encode | base64Decode }}'
3014 - '42'
3015 Base64Encode:
3016 Aliases:
3017 - base64Encode
3018 Args:
3019 - content
3020 Description: Base64Encode returns the base64 encoding of the given content.
3021 Examples:
3022 - - '{{ "Hello world" | base64Encode }}'
3023 - SGVsbG8gd29ybGQ=
3024 HexDecode:
3025 Aliases: null
3026 Args:
3027 - content
3028 Description: HexDecode returns the hex decoding of the given content.
3029 Examples:
3030 - - '{{ "48656c6c6f20776f726c64" | encoding.HexDecode }}'
3031 - Hello world
3032 HexEncode:
3033 Aliases: null
3034 Args:
3035 - content
3036 Description: HexEncode returns the hex encoding of the given content.
3037 Examples:
3038 - - '{{ "Hello world" | encoding.HexEncode }}'
3039 - 48656c6c6f20776f726c64
3040 Jsonify:
3041 Aliases:
3042 - jsonify
3043 Args:
3044 - args
3045 Description: |-
3046 Jsonify encodes a given object to JSON. To pretty print the JSON, pass a map
3047 or dictionary of options as the first value in args. Supported options are
3048 "prefix" and "indent". Each JSON element in the output will begin on a new
3049 line beginning with prefix followed by one or more copies of indent according
3050 to the indentation nesting.
3051 Examples:
3052 - - '{{ (slice "A" "B" "C") | jsonify }}'
3053 - '["A","B","C"]'
3054 - - '{{ (slice "A" "B" "C") | jsonify (dict "indent" " ") }}'
3055 - '[\n "A",\n "B",\n "C"\n]'
3056 fmt:
3057 Errorf:
3058 Aliases:
3059 - errorf
3060 Args:
3061 - format
3062 - args
3063 Description: |-
3064 Errorf formats args according to a format specifier and logs an ERROR.
3065 It returns an empty string.
3066 Examples:
3067 - - '{{ errorf "%s." "failed" }}'
3068 - ''
3069 Erroridf:
3070 Aliases:
3071 - erroridf
3072 Args:
3073 - id
3074 - format
3075 - args
3076 Description: |-
3077 Erroridf formats args according to a format specifier and logs an ERROR and
3078 an information text that the error with the given id can be suppressed in config.
3079 It returns an empty string.
3080 Examples:
3081 - - '{{ erroridf "my-err-id" "%s." "failed" }}'
3082 - ''
3083 Errormf:
3084 Aliases: null
3085 Args:
3086 - m
3087 - format
3088 - args
3089 Description: Errormf is experimental and subject to change at any time.
3090 Examples: []
3091 Print:
3092 Aliases:
3093 - print
3094 Args:
3095 - args
3096 Description: Print returns a string representation of args.
3097 Examples:
3098 - - '{{ print "works!" }}'
3099 - works!
3100 Printf:
3101 Aliases:
3102 - printf
3103 Args:
3104 - format
3105 - args
3106 Description: Printf returns string representation of args formatted with the layout in format.
3107 Examples:
3108 - - '{{ printf "%s!" "works" }}'
3109 - works!
3110 Println:
3111 Aliases:
3112 - println
3113 Args:
3114 - args
3115 Description: Println returns string representation of args ending with a newline.
3116 Examples:
3117 - - '{{ println "works!" }}'
3118 - |
3119 works!
3120 Warnf:
3121 Aliases:
3122 - warnf
3123 Args:
3124 - format
3125 - args
3126 Description: |-
3127 Warnf formats args according to a format specifier and logs a WARNING.
3128 It returns an empty string.
3129 Examples:
3130 - - '{{ warnf "%s." "warning" }}'
3131 - ''
3132 Warnidf:
3133 Aliases:
3134 - warnidf
3135 Args:
3136 - id
3137 - format
3138 - args
3139 Description: |-
3140 Warnidf formats args according to a format specifier and logs an WARNING and
3141 an information text that the warning with the given id can be suppressed in config.
3142 It returns an empty string.
3143 Examples:
3144 - - '{{ warnidf "my-warn-id" "%s." "warning" }}'
3145 - ''
3146 Warnmf:
3147 Aliases: null
3148 Args:
3149 - m
3150 - format
3151 - args
3152 Description: Warnmf is experimental and subject to change at any time.
3153 Examples: []
3154 hash:
3155 FNV32a:
3156 Aliases: null
3157 Args:
3158 - v
3159 Description: FNV32a hashes v using fnv32a algorithm.
3160 Examples:
3161 - - '{{ hash.FNV32a "Hugo Rocks!!" }}'
3162 - '1515779328'
3163 XxHash:
3164 Aliases:
3165 - xxhash
3166 Args:
3167 - v
3168 Description: XxHash returns the xxHash of the input string.
3169 Examples:
3170 - - '{{ hash.XxHash "The quick brown fox jumps over the lazy dog" }}'
3171 - 0b242d361fda71bc
3172 hugo:
3173 Data:
3174 Aliases: null
3175 Args: null
3176 Description: ''
3177 Examples: null
3178 Deps:
3179 Aliases: null
3180 Args: null
3181 Description: ''
3182 Examples: null
3183 Environment:
3184 Aliases: null
3185 Args: null
3186 Description: ''
3187 Examples: null
3188 ForEeachIdentityByName:
3189 Aliases: null
3190 Args: null
3191 Description: ''
3192 Examples: null
3193 Generator:
3194 Aliases: null
3195 Args: null
3196 Description: ''
3197 Examples: null
3198 IsDevelopment:
3199 Aliases: null
3200 Args: null
3201 Description: ''
3202 Examples: null
3203 IsExtended:
3204 Aliases: null
3205 Args: null
3206 Description: ''
3207 Examples: null
3208 IsMultihost:
3209 Aliases: null
3210 Args: null
3211 Description: ''
3212 Examples: null
3213 IsMultilingual:
3214 Aliases: null
3215 Args: null
3216 Description: ''
3217 Examples: null
3218 IsProduction:
3219 Aliases: null
3220 Args: null
3221 Description: ''
3222 Examples: null
3223 IsServer:
3224 Aliases: null
3225 Args: null
3226 Description: ''
3227 Examples: null
3228 Sites:
3229 Aliases: null
3230 Args: null
3231 Description: ''
3232 Examples: null
3233 Store:
3234 Aliases: null
3235 Args: null
3236 Description: ''
3237 Examples: null
3238 Version:
3239 Aliases: null
3240 Args: null
3241 Description: ''
3242 Examples: null
3243 WorkingDir:
3244 Aliases: null
3245 Args: null
3246 Description: ''
3247 Examples: null
3248 images:
3249 AutoOrient:
3250 Aliases: null
3251 Args: null
3252 Description: ''
3253 Examples: null
3254 Brightness:
3255 Aliases: null
3256 Args: null
3257 Description: ''
3258 Examples: null
3259 ColorBalance:
3260 Aliases: null
3261 Args: null
3262 Description: ''
3263 Examples: null
3264 Colorize:
3265 Aliases: null
3266 Args: null
3267 Description: ''
3268 Examples: null
3269 Config:
3270 Aliases:
3271 - imageConfig
3272 Args:
3273 - path
3274 Description: |-
3275 Config returns the image.Config for the specified path relative to the
3276 working directory.
3277 Examples: []
3278 Contrast:
3279 Aliases: null
3280 Args: null
3281 Description: ''
3282 Examples: null
3283 Dither:
3284 Aliases: null
3285 Args: null
3286 Description: ''
3287 Examples: null
3288 Filter:
3289 Aliases: null
3290 Args:
3291 - args
3292 Description: Filter applies the given filters to the image given as the last element in args.
3293 Examples: []
3294 Gamma:
3295 Aliases: null
3296 Args: null
3297 Description: ''
3298 Examples: null
3299 GaussianBlur:
3300 Aliases: null
3301 Args: null
3302 Description: ''
3303 Examples: null
3304 Grayscale:
3305 Aliases: null
3306 Args: null
3307 Description: ''
3308 Examples: null
3309 Hue:
3310 Aliases: null
3311 Args: null
3312 Description: ''
3313 Examples: null
3314 Invert:
3315 Aliases: null
3316 Args: null
3317 Description: ''
3318 Examples: null
3319 Mask:
3320 Aliases: null
3321 Args: null
3322 Description: ''
3323 Examples: null
3324 Opacity:
3325 Aliases: null
3326 Args: null
3327 Description: ''
3328 Examples: null
3329 Overlay:
3330 Aliases: null
3331 Args: null
3332 Description: ''
3333 Examples: null
3334 Padding:
3335 Aliases: null
3336 Args: null
3337 Description: ''
3338 Examples: null
3339 Pixelate:
3340 Aliases: null
3341 Args: null
3342 Description: ''
3343 Examples: null
3344 Process:
3345 Aliases: null
3346 Args: null
3347 Description: ''
3348 Examples: null
3349 QR:
3350 Aliases: null
3351 Args:
3352 - args
3353 Description: |-
3354 QR encodes the given text into a QR code using the specified options,
3355 returning an image resource.
3356 Examples: []
3357 Saturation:
3358 Aliases: null
3359 Args: null
3360 Description: ''
3361 Examples: null
3362 Sepia:
3363 Aliases: null
3364 Args: null
3365 Description: ''
3366 Examples: null
3367 Sigmoid:
3368 Aliases: null
3369 Args: null
3370 Description: ''
3371 Examples: null
3372 Text:
3373 Aliases: null
3374 Args: null
3375 Description: ''
3376 Examples: null
3377 UnsharpMask:
3378 Aliases: null
3379 Args: null
3380 Description: ''
3381 Examples: null
3382 inflect:
3383 Humanize:
3384 Aliases:
3385 - humanize
3386 Args:
3387 - v
3388 Description: |-
3389 Humanize returns the humanized form of v.
3390
3391 If v is either an integer or a string containing an integer
3392 value, the behavior is to add the appropriate ordinal.
3393 Examples:
3394 - - '{{ humanize "my-first-post" }}'
3395 - My first post
3396 - - '{{ humanize "myCamelPost" }}'
3397 - My camel post
3398 - - '{{ humanize "52" }}'
3399 - 52nd
3400 - - '{{ humanize 103 }}'
3401 - 103rd
3402 Pluralize:
3403 Aliases:
3404 - pluralize
3405 Args:
3406 - v
3407 Description: Pluralize returns the plural form of the single word in v.
3408 Examples:
3409 - - '{{ "cat" | pluralize }}'
3410 - cats
3411 Singularize:
3412 Aliases:
3413 - singularize
3414 Args:
3415 - v
3416 Description: Singularize returns the singular form of a single word in v.
3417 Examples:
3418 - - '{{ "cats" | singularize }}'
3419 - cat
3420 js:
3421 Babel:
3422 Aliases:
3423 - babel
3424 Args:
3425 - args
3426 Description: Babel processes the given Resource with Babel.
3427 Examples: []
3428 Batch:
3429 Aliases: null
3430 Args:
3431 - id
3432 Description: |-
3433 Batch creates a new Batcher with the given ID.
3434 Repeated calls with the same ID will return the same Batcher.
3435 The ID will be used to name the root directory of the batch.
3436 Forward slashes in the ID is allowed.
3437 Examples: []
3438 Build:
3439 Aliases: null
3440 Args:
3441 - args
3442 Description: Build processes the given JavaScript Resource with ESBuild.
3443 Examples: []
3444 lang:
3445 FormatAccounting:
3446 Aliases: null
3447 Args:
3448 - precision
3449 - currency
3450 - number
3451 Description: |-
3452 FormatAccounting returns the currency representation of number for the given currency and precision
3453 for the current language in accounting notation.
3454
3455 The return value is formatted with at least two decimal places.
3456 Examples:
3457 - - '{{ 512.5032 | lang.FormatAccounting 2 "NOK" }}'
3458 - NOK512.50
3459 FormatCurrency:
3460 Aliases: null
3461 Args:
3462 - precision
3463 - currency
3464 - number
3465 Description: |-
3466 FormatCurrency returns the currency representation of number for the given currency and precision
3467 for the current language.
3468
3469 The return value is formatted with at least two decimal places.
3470 Examples:
3471 - - '{{ 512.5032 | lang.FormatCurrency 2 "USD" }}'
3472 - $512.50
3473 FormatNumber:
3474 Aliases: null
3475 Args:
3476 - precision
3477 - number
3478 Description: FormatNumber formats number with the given precision for the current language.
3479 Examples:
3480 - - '{{ 512.5032 | lang.FormatNumber 2 }}'
3481 - '512.50'
3482 FormatNumberCustom:
3483 Aliases: null
3484 Args:
3485 - precision
3486 - number
3487 - options
3488 Description: 'FormatNumberCustom formats a number with the given precision. The first\noptions parameter is a space-delimited string of characters to represent\nnegativity, the decimal point, and grouping. The default value is `- . ,`.\nThe second options parameter defines an alternate delimiting character.\n\nNote that numbers are rounded up at 5 or greater.\nSo, with precision set to 0, 1.5 becomes `2`, and 1.4 becomes `1`.\n\nFor a simpler function that adapts to the current language, see FormatNumber.'
3489 Examples:
3490 - - '{{ lang.FormatNumberCustom 2 12345.6789 }}'
3491 - 12,345.68
3492 - - '{{ lang.FormatNumberCustom 2 12345.6789 "- , ." }}'
3493 - 12.345,68
3494 - - '{{ lang.FormatNumberCustom 6 -12345.6789 "- ." }}'
3495 - '-12345.678900'
3496 - - '{{ lang.FormatNumberCustom 0 -12345.6789 "- . ," }}'
3497 - -12,346
3498 - - '{{ lang.FormatNumberCustom 0 -12345.6789 "-|.| " "|" }}'
3499 - -12 346
3500 - - '{{ -98765.4321 | lang.FormatNumberCustom 2 }}'
3501 - -98,765.43
3502 FormatPercent:
3503 Aliases: null
3504 Args:
3505 - precision
3506 - number
3507 Description: |-
3508 FormatPercent formats number with the given precision for the current language.
3509 Note that the number is assumed to be a percentage.
3510 Examples:
3511 - - '{{ 512.5032 | lang.FormatPercent 2 }}'
3512 - 512.50%
3513 Merge:
3514 Aliases: null
3515 Args:
3516 - p2
3517 - p1
3518 Description: Merge creates a union of pages from two languages.
3519 Examples: []
3520 Translate:
3521 Aliases:
3522 - i18n
3523 - T
3524 Args:
3525 - ctx
3526 - id
3527 - args
3528 Description: Translate returns a translated string for id.
3529 Examples: []
3530 math:
3531 Abs:
3532 Aliases: null
3533 Args:
3534 - 'n'
3535 Description: Abs returns the absolute value of n.
3536 Examples:
3537 - - '{{ math.Abs -2.1 }}'
3538 - '2.1'
3539 Acos:
3540 Aliases: null
3541 Args:
3542 - 'n'
3543 Description: Acos returns the arccosine, in radians, of n.
3544 Examples:
3545 - - '{{ math.Acos 1 }}'
3546 - '0'
3547 Add:
3548 Aliases:
3549 - add
3550 Args:
3551 - inputs
3552 Description: Add adds the multivalued addends n1 and n2 or more values.
3553 Examples:
3554 - - '{{ add 1 2 }}'
3555 - '3'
3556 Asin:
3557 Aliases: null
3558 Args:
3559 - 'n'
3560 Description: Asin returns the arcsine, in radians, of n.
3561 Examples:
3562 - - '{{ math.Asin 1 }}'
3563 - '1.5707963267948966'
3564 Atan:
3565 Aliases: null
3566 Args:
3567 - 'n'
3568 Description: Atan returns the arctangent, in radians, of n.
3569 Examples:
3570 - - '{{ math.Atan 1 }}'
3571 - '0.7853981633974483'
3572 Atan2:
3573 Aliases: null
3574 Args:
3575 - 'n'
3576 - m
3577 Description: Atan2 returns the arc tangent of n/m, using the signs of the two to determine the quadrant of the return value.
3578 Examples:
3579 - - '{{ math.Atan2 1 2 }}'
3580 - '0.4636476090008061'
3581 Ceil:
3582 Aliases: null
3583 Args:
3584 - 'n'
3585 Description: Ceil returns the least integer value greater than or equal to n.
3586 Examples:
3587 - - '{{ math.Ceil 2.1 }}'
3588 - '3'
3589 Cos:
3590 Aliases: null
3591 Args:
3592 - 'n'
3593 Description: Cos returns the cosine of the radian argument n.
3594 Examples:
3595 - - '{{ math.Cos 1 }}'
3596 - '0.5403023058681398'
3597 Counter:
3598 Aliases: null
3599 Args: null
3600 Description: 'Counter increments and returns a global counter.\nThis was originally added to be used in tests where now.UnixNano did not\nhave the needed precision (especially on Windows).\nNote that given the parallel nature of Hugo, you cannot use this to get sequences of numbers,\nand the counter will reset on new builds.\n<docsmeta>{"identifiers": ["now.UnixNano"] }</docsmeta>'
3601 Examples: []
3602 Div:
3603 Aliases:
3604 - div
3605 Args:
3606 - inputs
3607 Description: Div divides n1 by n2.
3608 Examples:
3609 - - '{{ div 6 3 }}'
3610 - '2'
3611 Floor:
3612 Aliases: null
3613 Args:
3614 - 'n'
3615 Description: Floor returns the greatest integer value less than or equal to n.
3616 Examples:
3617 - - '{{ math.Floor 1.9 }}'
3618 - '1'
3619 Log:
3620 Aliases: null
3621 Args:
3622 - 'n'
3623 Description: Log returns the natural logarithm of the number n.
3624 Examples:
3625 - - '{{ math.Log 1 }}'
3626 - '0'
3627 Max:
3628 Aliases: null
3629 Args:
3630 - inputs
3631 Description: Max returns the greater of all numbers in inputs. Any slices in inputs are flattened.
3632 Examples:
3633 - - '{{ math.Max 1 2 }}'
3634 - '2'
3635 MaxInt64:
3636 Aliases: null
3637 Args: null
3638 Description: MaxInt64 returns the maximum value for a signed 64-bit integer.
3639 Examples:
3640 - - '{{ math.MaxInt64 }}'
3641 - '9223372036854775807'
3642 Min:
3643 Aliases: null
3644 Args:
3645 - inputs
3646 Description: Min returns the smaller of all numbers in inputs. Any slices in inputs are flattened.
3647 Examples:
3648 - - '{{ math.Min 1 2 }}'
3649 - '1'
3650 Mod:
3651 Aliases:
3652 - mod
3653 Args:
3654 - n1
3655 - n2
3656 Description: Mod returns n1 % n2.
3657 Examples:
3658 - - '{{ mod 15 3 }}'
3659 - '0'
3660 ModBool:
3661 Aliases:
3662 - modBool
3663 Args:
3664 - n1
3665 - n2
3666 Description: ModBool returns the boolean of n1 % n2. If n1 % n2 == 0, return true.
3667 Examples:
3668 - - '{{ modBool 15 3 }}'
3669 - 'true'
3670 Mul:
3671 Aliases:
3672 - mul
3673 Args:
3674 - inputs
3675 Description: Mul multiplies the multivalued numbers n1 and n2 or more values.
3676 Examples:
3677 - - '{{ mul 2 3 }}'
3678 - '6'
3679 Pi:
3680 Aliases: null
3681 Args: null
3682 Description: Pi returns the mathematical constant pi.
3683 Examples:
3684 - - '{{ math.Pi }}'
3685 - '3.141592653589793'
3686 Pow:
3687 Aliases:
3688 - pow
3689 Args:
3690 - n1
3691 - n2
3692 Description: Pow returns n1 raised to the power of n2.
3693 Examples:
3694 - - '{{ math.Pow 2 3 }}'
3695 - '8'
3696 Product:
3697 Aliases: null
3698 Args:
3699 - inputs
3700 Description: Product returns the product of all numbers in inputs. Any slices in inputs are flattened.
3701 Examples: []
3702 Rand:
3703 Aliases: null
3704 Args: null
3705 Description: Rand returns, as a float64, a pseudo-random number in the half-open interval [0.0,1.0).
3706 Examples:
3707 - - '{{ math.Rand }}'
3708 - '0.6312770459590062'
3709 Round:
3710 Aliases: null
3711 Args:
3712 - 'n'
3713 Description: Round returns the integer nearest to n, rounding half away from zero.
3714 Examples:
3715 - - '{{ math.Round 1.5 }}'
3716 - '2'
3717 Sin:
3718 Aliases: null
3719 Args:
3720 - 'n'
3721 Description: Sin returns the sine of the radian argument n.
3722 Examples:
3723 - - '{{ math.Sin 1 }}'
3724 - '0.8414709848078965'
3725 Sqrt:
3726 Aliases: null
3727 Args:
3728 - 'n'
3729 Description: Sqrt returns the square root of the number n.
3730 Examples:
3731 - - '{{ math.Sqrt 81 }}'
3732 - '9'
3733 Sub:
3734 Aliases:
3735 - sub
3736 Args:
3737 - inputs
3738 Description: Sub subtracts multivalued.
3739 Examples:
3740 - - '{{ sub 3 2 }}'
3741 - '1'
3742 Sum:
3743 Aliases: null
3744 Args:
3745 - inputs
3746 Description: Sum returns the sum of all numbers in inputs. Any slices in inputs are flattened.
3747 Examples: []
3748 Tan:
3749 Aliases: null
3750 Args:
3751 - 'n'
3752 Description: Tan returns the tangent of the radian argument n.
3753 Examples:
3754 - - '{{ math.Tan 1 }}'
3755 - '1.557407724654902'
3756 ToDegrees:
3757 Aliases: null
3758 Args:
3759 - 'n'
3760 Description: ToDegrees converts radians into degrees.
3761 Examples:
3762 - - '{{ math.ToDegrees 1.5707963267948966 }}'
3763 - '90'
3764 ToRadians:
3765 Aliases: null
3766 Args:
3767 - 'n'
3768 Description: ToRadians converts degrees into radians.
3769 Examples:
3770 - - '{{ math.ToRadians 90 }}'
3771 - '1.5707963267948966'
3772 openapi3:
3773 Unmarshal:
3774 Aliases: null
3775 Args: null
3776 Description: ''
3777 Examples: []
3778 os:
3779 FileExists:
3780 Aliases:
3781 - fileExists
3782 Args:
3783 - i
3784 Description: FileExists checks whether a file exists under the given path.
3785 Examples:
3786 - - '{{ fileExists "foo.txt" }}'
3787 - 'false'
3788 Getenv:
3789 Aliases:
3790 - getenv
3791 Args:
3792 - key
3793 Description: |-
3794 Getenv retrieves the value of the environment variable named by the key.
3795 It returns the value, which will be empty if the variable is not present.
3796 Examples: []
3797 ReadDir:
3798 Aliases:
3799 - readDir
3800 Args:
3801 - i
3802 Description: ReadDir lists the directory contents relative to the configured WorkingDir.
3803 Examples:
3804 - - '{{ range (readDir "files") }}{{ .Name }}{{ end }}'
3805 - README.txt
3806 ReadFile:
3807 Aliases:
3808 - readFile
3809 Args:
3810 - i
3811 Description: |-
3812 ReadFile reads the file named by filename relative to the configured WorkingDir.
3813 It returns the contents as a string.
3814 There is an upper size limit set at 1 megabytes.
3815 Examples:
3816 - - '{{ readFile "files/README.txt" }}'
3817 - Hugo Rocks!
3818 Stat:
3819 Aliases: null
3820 Args:
3821 - i
3822 Description: Stat returns the os.FileInfo structure describing file.
3823 Examples: []
3824 partials:
3825 Include:
3826 Aliases:
3827 - partial
3828 Args:
3829 - ctx
3830 - name
3831 - contextList
3832 Description: |-
3833 Include executes the named partial.
3834 If the partial contains a return statement, that value will be returned.
3835 Else, the rendered output will be returned:
3836 A string if the partial is a text/template, or template.HTML when html/template.
3837 Note that ctx is provided by Hugo, not the end user.
3838 Examples:
3839 - - '{{ partial "header.html" . }}'
3840 - <title>Hugo Rocks!</title>
3841 IncludeCached:
3842 Aliases:
3843 - partialCached
3844 Args:
3845 - ctx
3846 - name
3847 - context
3848 - variants
3849 Description: |-
3850 IncludeCached executes and caches partial templates. The cache is created with name+variants as the key.
3851 Note that ctx is provided by Hugo, not the end user.
3852 Examples: []
3853 path:
3854 Base:
3855 Aliases: null
3856 Args:
3857 - path
3858 Description: |-
3859 Base returns the last element of path.
3860 Trailing slashes are removed before extracting the last element.
3861 If the path is empty, Base returns ".".
3862 If the path consists entirely of slashes, Base returns "/".
3863 The input path is passed into filepath.ToSlash converting any Windows slashes
3864 to forward slashes.
3865 Examples: []
3866 BaseName:
3867 Aliases: null
3868 Args:
3869 - path
3870 Description: |-
3871 BaseName returns the last element of path, removing the extension if present.
3872 Trailing slashes are removed before extracting the last element.
3873 If the path is empty, Base returns ".".
3874 If the path consists entirely of slashes, Base returns "/".
3875 The input path is passed into filepath.ToSlash converting any Windows slashes
3876 to forward slashes.
3877 Examples: []
3878 Clean:
3879 Aliases: null
3880 Args:
3881 - path
3882 Description: |-
3883 Clean replaces the separators used with standard slashes and then
3884 extraneous slashes are removed.
3885 Examples: []
3886 Dir:
3887 Aliases: null
3888 Args:
3889 - path
3890 Description: |-
3891 Dir returns all but the last element of path, typically the path's directory.
3892 After dropping the final element using Split, the path is Cleaned and trailing
3893 slashes are removed.
3894 If the path is empty, Dir returns ".".
3895 If the path consists entirely of slashes followed by non-slash bytes, Dir
3896 returns a single slash. In any other case, the returned path does not end in a
3897 slash.
3898 The input path is passed into filepath.ToSlash converting any Windows slashes
3899 to forward slashes.
3900 Examples: []
3901 Ext:
3902 Aliases: null
3903 Args:
3904 - path
3905 Description: |-
3906 Ext returns the file name extension used by path.
3907 The extension is the suffix beginning at the final dot
3908 in the final slash-separated element of path;
3909 it is empty if there is no dot.
3910 The input path is passed into filepath.ToSlash converting any Windows slashes
3911 to forward slashes.
3912 Examples: []
3913 Join:
3914 Aliases: null
3915 Args:
3916 - elements
3917 Description: |-
3918 Join joins any number of path elements into a single path, adding a
3919 separating slash if necessary. All the input
3920 path elements are passed into filepath.ToSlash converting any Windows slashes
3921 to forward slashes.
3922 The result is Cleaned; in particular,
3923 all empty strings are ignored.
3924 Examples:
3925 - - '{{ slice "my/path" "filename.txt" | path.Join }}'
3926 - my/path/filename.txt
3927 - - '{{ path.Join "my" "path" "filename.txt" }}'
3928 - my/path/filename.txt
3929 - - '{{ "my/path/filename.txt" | path.Ext }}'
3930 - .txt
3931 - - '{{ "my/path/filename.txt" | path.Base }}'
3932 - filename.txt
3933 - - '{{ "my/path/filename.txt" | path.Dir }}'
3934 - my/path
3935 Split:
3936 Aliases: null
3937 Args:
3938 - path
3939 Description: |-
3940 Split splits path immediately following the final slash,
3941 separating it into a directory and file name component.
3942 If there is no slash in path, Split returns an empty dir and
3943 file set to path.
3944 The input path is passed into filepath.ToSlash converting any Windows slashes
3945 to forward slashes.
3946 The returned values have the property that path = dir+file.
3947 Examples:
3948 - - '{{ "/my/path/filename.txt" | path.Split }}'
3949 - /my/path/|filename.txt
3950 - - '{{ "/my/path/filename.txt" | path.Split }}'
3951 - /my/path/|filename.txt
3952 reflect:
3953 IsImageResource:
3954 Aliases: null
3955 Args: null
3956 Description: ''
3957 Examples: null
3958 IsImageResourceProcessable:
3959 Aliases: null
3960 Args: null
3961 Description: ''
3962 Examples: null
3963 IsImageResourceWithMeta:
3964 Aliases: null
3965 Args: null
3966 Description: ''
3967 Examples: null
3968 IsMap:
3969 Aliases: null
3970 Args:
3971 - v
3972 Description: IsMap reports whether v is a map.
3973 Examples:
3974 - - '{{ if reflect.IsMap (dict "a" 1) }}Map{{ end }}'
3975 - Map
3976 IsPage:
3977 Aliases: null
3978 Args: null
3979 Description: ''
3980 Examples: null
3981 IsResource:
3982 Aliases: null
3983 Args: null
3984 Description: ''
3985 Examples: null
3986 IsSite:
3987 Aliases: null
3988 Args: null
3989 Description: ''
3990 Examples: null
3991 IsSlice:
3992 Aliases: null
3993 Args:
3994 - v
3995 Description: IsSlice reports whether v is a slice.
3996 Examples:
3997 - - '{{ if reflect.IsSlice (slice 1 2 3) }}Slice{{ end }}'
3998 - Slice
3999 resources:
4000 ByType:
4001 Aliases: null
4002 Args:
4003 - typ
4004 Description: ByType returns resources of a given resource type (e.g. "image").
4005 Examples: []
4006 Concat:
4007 Aliases: null
4008 Args:
4009 - targetPathIn
4010 - r
4011 Description: |-
4012 Concat concatenates a slice of Resource objects. These resources must
4013 (currently) be of the same Media Type.
4014 Examples: []
4015 Copy:
4016 Aliases: null
4017 Args:
4018 - s
4019 - r
4020 Description: Copy copies r to the new targetPath in s.
4021 Examples: []
4022 ExecuteAsTemplate:
4023 Aliases: null
4024 Args:
4025 - ctx
4026 - args
4027 Description: |-
4028 ExecuteAsTemplate creates a Resource from a Go template, parsed and executed with
4029 the given data, and published to the relative target path.
4030 Examples: []
4031 Fingerprint:
4032 Aliases:
4033 - fingerprint
4034 Args:
4035 - args
4036 Description: |-
4037 Fingerprint transforms the given Resource with a MD5 hash of the content in
4038 the RelPermalink and Permalink.
4039 Examples: []
4040 FromString:
4041 Aliases: null
4042 Args:
4043 - targetPathIn
4044 - contentIn
4045 Description: FromString creates a Resource from a string published to the relative target path.
4046 Examples: []
4047 Get:
4048 Aliases: null
4049 Args:
4050 - filename
4051 Description: |-
4052 Get locates the filename given in Hugo's assets filesystem
4053 and creates a Resource object that can be used for further transformations.
4054 Examples: []
4055 GetMatch:
4056 Aliases: null
4057 Args: null
4058 Description: ''
4059 Examples: null
4060 GetRemote:
4061 Aliases: null
4062 Args:
4063 - args
4064 Description: 'GetRemote gets the URL (via HTTP(s)) in the first argument in args and creates Resource object that can be used for\nfurther transformations.\n\nA second argument may be provided with an option map.\n\nNote: This method does not return any error as a second return value,\nfor any error situations the error can be checked in .Err.'
4065 Examples: []
4066 Key:
4067 Aliases: null
4068 Args: null
4069 Description: ''
4070 Examples: null
4071 Match:
4072 Aliases: null
4073 Args:
4074 - pattern
4075 Description: |-
4076 Match gets all resources matching the given base path prefix, e.g
4077 "*.png" will match all png files. The "*" does not match path delimiters (/),
4078 so if you organize your resources in sub-folders, you need to be explicit about it, e.g.:
4079 "images/*.png". To match any PNG image anywhere in the bundle you can do "**.png", and
4080 to match all PNG images below the images folder, use "images/**.jpg".
4081
4082 The matching is case insensitive.
4083
4084 Match matches by using the files name with path relative to the file system root
4085 with Unix style slashes (/) and no leading slash, e.g. "images/logo.png".
4086
4087 See https://github.com/gobwas/glob for the full rules set.
4088
4089 It looks for files in the assets file system.
4090
4091 See Match for a more complete explanation about the rules used.
4092 Examples: []
4093 Minify:
4094 Aliases:
4095 - minify
4096 Args:
4097 - r
4098 Description: |-
4099 Minify minifies the given Resource using the MediaType to pick the correct
4100 minifier.
4101 Examples: []
4102 PostProcess:
4103 Aliases: null
4104 Args:
4105 - r
4106 Description: 'PostProcess processes r after the build.\n\nDeprecated: Use templates.Defer instead.'
4107 Examples: []
4108 Publish:
4109 Aliases: null
4110 Args:
4111 - r
4112 Description: Publish publishes r to the destination and returns it.
4113 Examples: []
4114 safe:
4115 CSS:
4116 Aliases:
4117 - safeCSS
4118 Args:
4119 - s
4120 Description: CSS returns the string s as html/template CSS content.
4121 Examples:
4122 - - '{{ "Bat&Man" | safeCSS | safeCSS }}'
4123 - Bat&amp;Man
4124 HTML:
4125 Aliases:
4126 - safeHTML
4127 Args:
4128 - s
4129 Description: HTML returns the string s as html/template HTML content.
4130 Examples:
4131 - - '{{ "Bat&Man" | safeHTML | safeHTML }}'
4132 - Bat&Man
4133 - - '{{ "Bat&Man" | safeHTML }}'
4134 - Bat&Man
4135 HTMLAttr:
4136 Aliases:
4137 - safeHTMLAttr
4138 Args:
4139 - s
4140 Description: HTMLAttr returns the string s as html/template HTMLAttr content.
4141 Examples: []
4142 JS:
4143 Aliases:
4144 - safeJS
4145 Args:
4146 - s
4147 Description: JS returns the given string as a html/template JS content.
4148 Examples:
4149 - - '{{ "(1*2)" | safeJS | safeJS }}'
4150 - (1*2)
4151 JSStr:
4152 Aliases:
4153 - safeJSStr
4154 Args:
4155 - s
4156 Description: JSStr returns the given string as a html/template JSStr content.
4157 Examples: []
4158 URL:
4159 Aliases:
4160 - safeURL
4161 Args:
4162 - s
4163 Description: URL returns the string s as html/template URL content.
4164 Examples:
4165 - - '{{ "http://gohugo.io" | safeURL | safeURL }}'
4166 - http://gohugo.io
4167 site:
4168 AllPages:
4169 Aliases: null
4170 Args: null
4171 Description: ''
4172 Examples: null
4173 BaseURL:
4174 Aliases: null
4175 Args: null
4176 Description: ''
4177 Examples: null
4178 BuildDrafts:
4179 Aliases: null
4180 Args: null
4181 Description: ''
4182 Examples: null
4183 CheckReady:
4184 Aliases: null
4185 Args: null
4186 Description: ''
4187 Examples: null
4188 Config:
4189 Aliases: null
4190 Args: null
4191 Description: ''
4192 Examples: null
4193 Copyright:
4194 Aliases: null
4195 Args: null
4196 Description: ''
4197 Examples: null
4198 Current:
4199 Aliases: null
4200 Args: null
4201 Description: ''
4202 Examples: null
4203 Data:
4204 Aliases: null
4205 Args: null
4206 Description: ''
4207 Examples: null
4208 Dimension:
4209 Aliases: null
4210 Args: null
4211 Description: ''
4212 Examples: null
4213 ForEeachIdentityByName:
4214 Aliases: null
4215 Args: null
4216 Description: ''
4217 Examples: null
4218 GetPage:
4219 Aliases: null
4220 Args: null
4221 Description: ''
4222 Examples: null
4223 Home:
4224 Aliases: null
4225 Args: null
4226 Description: ''
4227 Examples: null
4228 Hugo:
4229 Aliases: null
4230 Args: null
4231 Description: ''
4232 Examples: null
4233 IsDefault:
4234 Aliases: null
4235 Args: null
4236 Description: ''
4237 Examples: null
4238 Key:
4239 Aliases: null
4240 Args: null
4241 Description: ''
4242 Examples: null
4243 Language:
4244 Aliases: null
4245 Args: null
4246 Description: ''
4247 Examples: null
4248 LanguageCode:
4249 Aliases: null
4250 Args: null
4251 Description: ''
4252 Examples: null
4253 LanguagePrefix:
4254 Aliases: null
4255 Args: null
4256 Description: ''
4257 Examples: null
4258 Languages:
4259 Aliases: null
4260 Args: null
4261 Description: ''
4262 Examples: null
4263 Lastmod:
4264 Aliases: null
4265 Args: null
4266 Description: ''
4267 Examples: null
4268 MainSections:
4269 Aliases: null
4270 Args: null
4271 Description: ''
4272 Examples: null
4273 Menus:
4274 Aliases: null
4275 Args: null
4276 Description: ''
4277 Examples: null
4278 Pages:
4279 Aliases: null
4280 Args: null
4281 Description: ''
4282 Examples: null
4283 Param:
4284 Aliases: null
4285 Args: null
4286 Description: ''
4287 Examples: null
4288 Params:
4289 Aliases: null
4290 Args: null
4291 Description: ''
4292 Examples: null
4293 RegularPages:
4294 Aliases: null
4295 Args: null
4296 Description: ''
4297 Examples: null
4298 Role:
4299 Aliases: null
4300 Args: null
4301 Description: ''
4302 Examples: null
4303 Sections:
4304 Aliases: null
4305 Args: null
4306 Description: ''
4307 Examples: null
4308 ServerPort:
4309 Aliases: null
4310 Args: null
4311 Description: ''
4312 Examples: null
4313 Sites:
4314 Aliases: null
4315 Args: null
4316 Description: ''
4317 Examples: null
4318 Store:
4319 Aliases: null
4320 Args: null
4321 Description: ''
4322 Examples: null
4323 String:
4324 Aliases: null
4325 Args: null
4326 Description: ''
4327 Examples: null
4328 Taxonomies:
4329 Aliases: null
4330 Args: null
4331 Description: ''
4332 Examples: null
4333 Title:
4334 Aliases: null
4335 Args: null
4336 Description: ''
4337 Examples: null
4338 Version:
4339 Aliases: null
4340 Args: null
4341 Description: ''
4342 Examples: null
4343 strings:
4344 Chomp:
4345 Aliases:
4346 - chomp
4347 Args:
4348 - s
4349 Description: Chomp returns a copy of s with all trailing newline characters removed.
4350 Examples:
4351 - - '{{ chomp "<p>Blockhead</p>\n" | safeHTML }}'
4352 - <p>Blockhead</p>
4353 Contains:
4354 Aliases: null
4355 Args:
4356 - s
4357 - substr
4358 Description: Contains reports whether substr is in s.
4359 Examples:
4360 - - '{{ strings.Contains "abc" "b" }}'
4361 - 'true'
4362 - - '{{ strings.Contains "abc" "d" }}'
4363 - 'false'
4364 ContainsAny:
4365 Aliases: null
4366 Args:
4367 - s
4368 - chars
4369 Description: ContainsAny reports whether any Unicode code points in chars are within s.
4370 Examples:
4371 - - '{{ strings.ContainsAny "abc" "bcd" }}'
4372 - 'true'
4373 - - '{{ strings.ContainsAny "abc" "def" }}'
4374 - 'false'
4375 ContainsNonSpace:
4376 Aliases: null
4377 Args:
4378 - s
4379 Description: 'ContainsNonSpace reports whether s contains any non-space characters as defined\nby Unicode''s White Space property,\n<docsmeta>{"newIn": "0.111.0" }</docsmeta>'
4380 Examples: []
4381 Count:
4382 Aliases: null
4383 Args:
4384 - substr
4385 - s
4386 Description: |-
4387 Count counts the number of non-overlapping instances of substr in s.
4388 If substr is an empty string, Count returns 1 + the number of Unicode code points in s.
4389 Examples:
4390 - - '{{ "aabab" | strings.Count "a" }}'
4391 - '3'
4392 CountRunes:
4393 Aliases:
4394 - countrunes
4395 Args:
4396 - s
4397 Description: CountRunes returns the number of runes in s, excluding whitespace.
4398 Examples: []
4399 CountWords:
4400 Aliases:
4401 - countwords
4402 Args:
4403 - s
4404 Description: CountWords returns the approximate word count in s.
4405 Examples: []
4406 Diff:
4407 Aliases: null
4408 Args:
4409 - oldname
4410 - old
4411 - newname
4412 - new
4413 Description: |-
4414 Diff returns an anchored diff of the two texts old and new in the “unified
4415 diff” format. If old and new are identical, Diff returns an empty string.
4416 Examples: []
4417 FindRE:
4418 Aliases:
4419 - findRE
4420 Args:
4421 - expr
4422 - content
4423 - limit
4424 Description: |-
4425 FindRE returns a list of strings that match the regular expression. By default all matches
4426 will be included. The number of matches can be limited with an optional third parameter.
4427 Examples:
4428 - - '{{ findRE "[G|g]o" "Hugo is a static side generator written in Go." 1 }}'
4429 - '[go]'
4430 FindRESubmatch:
4431 Aliases:
4432 - findRESubmatch
4433 Args:
4434 - expr
4435 - content
4436 - limit
4437 Description: |-
4438 FindRESubmatch returns a slice of all successive matches of the regular
4439 expression in content. Each element is a slice of strings holding the text
4440 of the leftmost match of the regular expression and the matches, if any, of
4441 its subexpressions.
4442
4443 By default all matches will be included. The number of matches can be
4444 limited with the optional limit parameter. A return value of nil indicates
4445 no match.
4446 Examples:
4447 - - '{{ findRESubmatch `<a\s*href="(.+?)">(.+?)</a>` `<li><a href="#foo">Foo</a></li> <li><a href="#bar">Bar</a></li>` | print | safeHTML }}'
4448 - '[[<a href="#foo">Foo</a> #foo Foo] [<a href="#bar">Bar</a> #bar Bar]]'
4449 FirstUpper:
4450 Aliases: null
4451 Args:
4452 - s
4453 Description: FirstUpper converts s making the first character upper case.
4454 Examples:
4455 - - '{{ "hugo rocks!" | strings.FirstUpper }}'
4456 - Hugo rocks!
4457 HasPrefix:
4458 Aliases:
4459 - hasPrefix
4460 Args:
4461 - s
4462 - prefix
4463 Description: HasPrefix tests whether the input s begins with prefix.
4464 Examples:
4465 - - '{{ hasPrefix "Hugo" "Hu" }}'
4466 - 'true'
4467 - - '{{ hasPrefix "Hugo" "Fu" }}'
4468 - 'false'
4469 HasSuffix:
4470 Aliases:
4471 - hasSuffix
4472 Args:
4473 - s
4474 - suffix
4475 Description: HasSuffix tests whether the input s begins with suffix.
4476 Examples:
4477 - - '{{ hasSuffix "Hugo" "go" }}'
4478 - 'true'
4479 - - '{{ hasSuffix "Hugo" "du" }}'
4480 - 'false'
4481 Repeat:
4482 Aliases: null
4483 Args:
4484 - 'n'
4485 - s
4486 Description: Repeat returns a new string consisting of n copies of the string s.
4487 Examples:
4488 - - '{{ "yo" | strings.Repeat 4 }}'
4489 - yoyoyoyo
4490 Replace:
4491 Aliases:
4492 - replace
4493 Args:
4494 - s
4495 - old
4496 - new
4497 - limit
4498 Description: |-
4499 Replace returns a copy of the string s with all occurrences of old replaced
4500 with new. The number of replacements can be limited with an optional fourth
4501 parameter.
4502 Examples:
4503 - - '{{ replace "Batman and Robin" "Robin" "Catwoman" }}'
4504 - Batman and Catwoman
4505 - - '{{ replace "aabbaabb" "a" "z" 2 }}'
4506 - zzbbaabb
4507 ReplacePairs:
4508 Aliases: null
4509 Args:
4510 - args
4511 Description: |-
4512 ReplacePairs returns a copy of a string with multiple replacements performed
4513 in a single pass. The last argument is the source string. Preceding arguments
4514 are old/new string pairs, either as a slice or as individual arguments.
4515 Examples:
4516 - - '{{ "aab" | strings.ReplacePairs "a" "b" "b" "c" }}'
4517 - bbc
4518 - - '{{ "aab" | strings.ReplacePairs (slice "a" "b" "b" "c") }}'
4519 - bbc
4520 ReplaceRE:
4521 Aliases:
4522 - replaceRE
4523 Args:
4524 - pattern
4525 - repl
4526 - s
4527 - 'n'
4528 Description: |-
4529 ReplaceRE returns a copy of s, replacing all matches of the regular
4530 expression pattern with the replacement text repl. The number of replacements
4531 can be limited with an optional fourth parameter.
4532 Examples:
4533 - - '{{ replaceRE "a+b" "X" "aabbaabbab" }}'
4534 - XbXbX
4535 - - '{{ replaceRE "a+b" "X" "aabbaabbab" 1 }}'
4536 - Xbaabbab
4537 RuneCount:
4538 Aliases: null
4539 Args:
4540 - s
4541 Description: RuneCount returns the number of runes in s.
4542 Examples: []
4543 SliceString:
4544 Aliases:
4545 - slicestr
4546 Args:
4547 - a
4548 - startEnd
4549 Description: |-
4550 SliceString slices a string by specifying a half-open range with
4551 two indices, start and end. 1 and 4 creates a slice including elements 1 through 3.
4552 The end index can be omitted, it defaults to the string's length.
4553 Examples:
4554 - - '{{ slicestr "BatMan" 0 3 }}'
4555 - Bat
4556 - - '{{ slicestr "BatMan" 3 }}'
4557 - Man
4558 Split:
4559 Aliases:
4560 - split
4561 Args:
4562 - a
4563 - delimiter
4564 Description: Split slices an input string into all substrings separated by delimiter.
4565 Examples: []
4566 Substr:
4567 Aliases:
4568 - substr
4569 Args:
4570 - a
4571 - nums
4572 Description: 'Substr extracts parts of a string, beginning at the character at the specified\nposition, and returns the specified number of characters.\n\nIt normally takes two parameters: start and length.\nIt can also take one parameter: start, i.e. length is omitted, in which case\nthe substring starting from start until the end of the string will be returned.\n\nTo extract characters from the end of the string, use a negative start number.\n\nIn addition, borrowing from the extended behavior described at http://php.net/substr,\nif length is given and is negative, then that many characters will be omitted from\nthe end of string.'
4573 Examples:
4574 - - '{{ substr "BatMan" 0 -3 }}'
4575 - Bat
4576 - - '{{ substr "BatMan" 3 3 }}'
4577 - Man
4578 Title:
4579 Aliases:
4580 - title
4581 Args:
4582 - s
4583 Description: |-
4584 Title returns a copy of the input s with all Unicode letters that begin words
4585 mapped to their title case.
4586 Examples:
4587 - - '{{ title "Bat man" }}'
4588 - Bat Man
4589 - - '{{ title "somewhere over the rainbow" }}'
4590 - Somewhere Over the Rainbow
4591 ToLower:
4592 Aliases:
4593 - lower
4594 Args:
4595 - s
4596 Description: |-
4597 ToLower returns a copy of the input s with all Unicode letters mapped to their
4598 lower case.
4599 Examples:
4600 - - '{{ lower "BatMan" }}'
4601 - batman
4602 ToUpper:
4603 Aliases:
4604 - upper
4605 Args:
4606 - s
4607 Description: |-
4608 ToUpper returns a copy of the input s with all Unicode letters mapped to their
4609 upper case.
4610 Examples:
4611 - - '{{ upper "BatMan" }}'
4612 - BATMAN
4613 Trim:
4614 Aliases:
4615 - trim
4616 Args:
4617 - s
4618 - cutset
4619 Description: |-
4620 Trim returns converts the strings s removing all leading and trailing characters defined
4621 contained.
4622 Examples:
4623 - - '{{ trim "++Batman--" "+-" }}'
4624 - Batman
4625 TrimLeft:
4626 Aliases: null
4627 Args:
4628 - cutset
4629 - s
4630 Description: |-
4631 TrimLeft returns a slice of the string s with all leading characters
4632 contained in cutset removed.
4633 Examples:
4634 - - '{{ "aabbaa" | strings.TrimLeft "a" }}'
4635 - bbaa
4636 TrimPrefix:
4637 Aliases: null
4638 Args:
4639 - prefix
4640 - s
4641 Description: |-
4642 TrimPrefix returns s without the provided leading prefix string. If s doesn't
4643 start with prefix, s is returned unchanged.
4644 Examples:
4645 - - '{{ "aabbaa" | strings.TrimPrefix "a" }}'
4646 - abbaa
4647 - - '{{ "aabbaa" | strings.TrimPrefix "aa" }}'
4648 - bbaa
4649 TrimRight:
4650 Aliases: null
4651 Args:
4652 - cutset
4653 - s
4654 Description: |-
4655 TrimRight returns a slice of the string s with all trailing characters
4656 contained in cutset removed.
4657 Examples:
4658 - - '{{ "aabbaa" | strings.TrimRight "a" }}'
4659 - aabb
4660 TrimSpace:
4661 Aliases: null
4662 Args:
4663 - s
4664 Description: |-
4665 TrimSpace returns the given string, removing leading and trailing whitespace
4666 as defined by Unicode.
4667 Examples: []
4668 TrimSuffix:
4669 Aliases: null
4670 Args:
4671 - suffix
4672 - s
4673 Description: |-
4674 TrimSuffix returns s without the provided trailing suffix string. If s
4675 doesn't end with suffix, s is returned unchanged.
4676 Examples:
4677 - - '{{ "aabbaa" | strings.TrimSuffix "a" }}'
4678 - aabba
4679 - - '{{ "aabbaa" | strings.TrimSuffix "aa" }}'
4680 - aabb
4681 Truncate:
4682 Aliases:
4683 - truncate
4684 Args:
4685 - s
4686 - options
4687 Description: Truncate truncates the string in s to the specified length.
4688 Examples:
4689 - - '{{ "this is a very long text" | truncate 10 " ..." }}'
4690 - this is a ...
4691 - - '{{ "With [Markdown](/markdown) inside." | markdownify | truncate 14 }}'
4692 - With <a href="/markdown">Markdown …</a>
4693 templates:
4694 Current:
4695 Aliases: null
4696 Args:
4697 - ctx
4698 Description: Get information about the currently executing template.
4699 Examples: []
4700 Defer:
4701 Aliases: null
4702 Args:
4703 - ctx
4704 - args
4705 Description: Defer defers the execution of a template block.
4706 Examples: []
4707 DoDefer:
4708 Aliases:
4709 - doDefer
4710 Args:
4711 - ctx
4712 - id
4713 - optsv
4714 Description: |-
4715 DoDefer defers the execution of a template block.
4716 For internal use only.
4717 Examples: []
4718 Exists:
4719 Aliases: null
4720 Args:
4721 - name
4722 Description: |-
4723 Exists returns whether the template with the given name exists.
4724 Note that this is the Unix-styled relative path including filename suffix,
4725 e.g. partials/header.html
4726 Examples:
4727 - - '{{ if (templates.Exists "_partials/header.html") }}Yes!{{ end }}'
4728 - Yes!
4729 - - '{{ if not (templates.Exists "_partials/doesnotexist.html") }}No!{{ end }}'
4730 - No!
4731 Inner:
4732 Aliases:
4733 - inner
4734 Args:
4735 - ctx
4736 - data
4737 Description: |-
4738 Inner executes the inner content of a partial decorator.
4739 Note that there is only one inner block per partial decorator, but inner may be called multiple times with, typically, different data.
4740 Examples: []
4741 testinginternal:
4742 HashString:
4743 Aliases: null
4744 Args: null
4745 Description: ''
4746 Examples: null
4747 NewCachedResourceGetter:
4748 Aliases: null
4749 Args: null
4750 Description: ''
4751 Examples: null
4752 time:
4753 AsTime:
4754 Aliases: null
4755 Args:
4756 - v
4757 - args
4758 Description: |-
4759 AsTime converts the textual representation of the datetime string into
4760 a time.Time interface.
4761 Examples:
4762 - - '{{ (time "2015-01-21").Year }}'
4763 - '2015'
4764 Duration:
4765 Aliases:
4766 - duration
4767 Args:
4768 - unit
4769 - number
4770 Description: |-
4771 Duration converts the given number to a time.Duration.
4772 Unit is one of nanosecond/ns, microsecond/us/µs, millisecond/ms, second/s, minute/m or hour/h.
4773 Examples:
4774 - - '{{ mul 60 60 | duration "second" }}'
4775 - 1h0m0s
4776 Format:
4777 Aliases:
4778 - dateFormat
4779 Args:
4780 - layout
4781 - v
4782 Description: |-
4783 Format converts the textual representation of the datetime string in v into
4784 time.Time if needed and formats it with the given layout.
4785 Examples:
4786 - - 'dateFormat: {{ dateFormat "Monday, Jan 2, 2006" "2015-01-21" }}'
4787 - 'dateFormat: Wednesday, Jan 21, 2015'
4788 In:
4789 Aliases: null
4790 Args:
4791 - timeZoneName
4792 - t
4793 Description: |-
4794 In returns the time t in the IANA time zone specified by timeZoneName.
4795 If timeZoneName is "" or "UTC", the time is returned in UTC.
4796 If timeZoneName is "Local", the time is returned in the system's local time zone.
4797 Otherwise, timeZoneName must be a valid IANA location name (e.g., "Europe/Oslo").
4798 Examples: []
4799 Now:
4800 Aliases:
4801 - now
4802 Args: null
4803 Description: Now returns the current local time or `clock` time
4804 Examples: []
4805 ParseDuration:
4806 Aliases: null
4807 Args:
4808 - s
4809 Description: 'ParseDuration parses the duration string s.\nA duration string is a possibly signed sequence of\ndecimal numbers, each with optional fraction and a unit suffix,\nsuch as "300ms", "-1.5h" or "2h45m".\nValid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".\nSee https://golang.org/pkg/time/#ParseDuration'
4810 Examples:
4811 - - '{{ "1h12m10s" | time.ParseDuration }}'
4812 - 1h12m10s
4813 transform:
4814 CanHighlight:
4815 Aliases: null
4816 Args:
4817 - language
4818 Description: CanHighlight returns whether the given code language is supported by the Chroma highlighter.
4819 Examples: []
4820 Emojify:
4821 Aliases:
4822 - emojify
4823 Args:
4824 - s
4825 Description: |-
4826 Emojify returns a copy of s with all emoji codes replaced with actual emojis.
4827
4828 See http://www.emoji-cheat-sheet.com/
4829 Examples:
4830 - - '{{ "I :heart: Hugo" | emojify }}'
4831 - I ❤️ Hugo
4832 HTMLEscape:
4833 Aliases:
4834 - htmlEscape
4835 Args:
4836 - s
4837 Description: HTMLEscape returns a copy of s with reserved HTML characters escaped.
4838 Examples:
4839 - - '{{ htmlEscape "Cathal Garvey & The Sunshine Band <[email protected]>" | safeHTML }}'
4840 - Cathal Garvey &amp; The Sunshine Band &lt;[email protected]&gt;
4841 - - '{{ htmlEscape "Cathal Garvey & The Sunshine Band <[email protected]>" }}'
4842 - Cathal Garvey &amp;amp; The Sunshine Band &amp;lt;[email protected]&amp;gt;
4843 - - '{{ htmlEscape "Cathal Garvey & The Sunshine Band <[email protected]>" | htmlUnescape | safeHTML }}'
4844 - Cathal Garvey & The Sunshine Band <[email protected]>
4845 HTMLToMarkdown:
4846 Aliases: null
4847 Args:
4848 - ctx
4849 - args
4850 Description: |-
4851 This was added in Hugo v0.151.0 and should be considered experimental for now.
4852 We need to test this out in the wild for a while before committing to this API,
4853 and there will eventually be more options here.
4854 Examples: []
4855 HTMLUnescape:
4856 Aliases:
4857 - htmlUnescape
4858 Args:
4859 - s
4860 Description: |-
4861 HTMLUnescape returns a copy of s with HTML escape requences converted to plain
4862 text.
4863 Examples:
4864 - - '{{ htmlUnescape "Cathal Garvey &amp; The Sunshine Band &lt;[email protected]&gt;" | safeHTML }}'
4865 - Cathal Garvey & The Sunshine Band <[email protected]>
4866 - - '{{ "Cathal Garvey &amp;amp; The Sunshine Band &amp;lt;[email protected]&amp;gt;" | htmlUnescape | htmlUnescape | safeHTML }}'
4867 - Cathal Garvey & The Sunshine Band <[email protected]>
4868 - - '{{ "Cathal Garvey &amp;amp; The Sunshine Band &amp;lt;[email protected]&amp;gt;" | htmlUnescape | htmlUnescape }}'
4869 - Cathal Garvey &amp; The Sunshine Band &lt;[email protected]&gt;
4870 - - '{{ htmlUnescape "Cathal Garvey &amp; The Sunshine Band &lt;[email protected]&gt;" | htmlEscape | safeHTML }}'
4871 - Cathal Garvey &amp; The Sunshine Band &lt;[email protected]&gt;
4872 Highlight:
4873 Aliases:
4874 - highlight
4875 Args:
4876 - s
4877 - args
4878 Description: |-
4879 Highlight returns a copy of CODE as an HTML string with syntax
4880 highlighting applied.
4881
4882 transform.Highlight CODE [LANG] [OPTIONS]
4883
4884 LANG is optional; it can also be set via the type option in OPTIONS, which
4885 makes this work the same way as HighlightCodeBlock.
4886 Examples: []
4887 HighlightCodeBlock:
4888 Aliases: null
4889 Args:
4890 - ctx
4891 - opts
4892 Description: HighlightCodeBlock highlights a code block on the form received in the codeblock render hooks.
4893 Examples: []
4894 Markdownify:
4895 Aliases:
4896 - markdownify
4897 Args:
4898 - ctx
4899 - s
4900 Description: Markdownify renders s from Markdown to HTML.
4901 Examples:
4902 - - '{{ .Title | markdownify }}'
4903 - <strong>BatMan</strong>
4904 Plainify:
4905 Aliases:
4906 - plainify
4907 Args:
4908 - s
4909 Description: Plainify returns a copy of s with all HTML tags removed.
4910 Examples:
4911 - - '{{ plainify "Hello <strong>world</strong>, gophers!" }}'
4912 - Hello world, gophers!
4913 PortableText:
4914 Aliases: null
4915 Args:
4916 - v
4917 Description: |-
4918 PortableText converts the portable text in v to Markdown.
4919 We may add more options in the future.
4920 Examples: []
4921 Remarshal:
4922 Aliases: null
4923 Args:
4924 - format
4925 - data
4926 Description: |-
4927 Remarshal is used in the Hugo documentation to convert configuration
4928 examples from YAML to JSON, TOML (and possibly the other way around).
4929 The is primarily a helper for the Hugo docs site.
4930 It is not a general purpose YAML to TOML converter etc., and may
4931 change without notice if it serves a purpose in the docs.
4932 Format is one of json, yaml or toml.
4933 Examples:
4934 - - '{{ "title = \"Hello World\"" | transform.Remarshal "json" | safeHTML }}'
4935 - '{\n "title": "Hello World"\n}\n'
4936 ToMath:
4937 Aliases: null
4938 Args:
4939 - ctx
4940 - args
4941 Description: |-
4942 ToMath converts a LaTeX string to math in the given format, default MathML.
4943 This uses KaTeX to render the math, see https://katex.org/.
4944 Examples: []
4945 Unmarshal:
4946 Aliases:
4947 - unmarshal
4948 Args:
4949 - args
4950 Description: |-
4951 Unmarshal unmarshals the data given, which can be either a string, json.RawMessage
4952 or a Resource. Supported formats are JSON, TOML, YAML, and CSV.
4953 You can optionally provide an options map as the first argument.
4954 Examples:
4955 - - '{{ "hello = \"Hello World\"" | transform.Unmarshal }}'
4956 - map[hello:Hello World]
4957 - - '{{ "hello = \"Hello World\"" | resources.FromString "data/greetings.toml" | transform.Unmarshal }}'
4958 - map[hello:Hello World]
4959 XMLEscape:
4960 Aliases: null
4961 Args:
4962 - s
4963 Description: |-
4964 XMLEscape returns the given string, removing disallowed characters then
4965 escaping the result to its XML equivalent.
4966 Examples:
4967 - - '{{ transform.XMLEscape "<p>abc</p>" }}'
4968 - '&lt;p&gt;abc&lt;/p&gt;'
4969 urls:
4970 AbsLangURL:
4971 Aliases:
4972 - absLangURL
4973 Args:
4974 - s
4975 Description: |-
4976 AbsLangURL the string s and converts it to an absolute URL according
4977 to a page's position in the project directory structure and the current
4978 language.
4979 Examples: []
4980 AbsURL:
4981 Aliases:
4982 - absURL
4983 Args:
4984 - s
4985 Description: AbsURL takes the string s and converts it to an absolute URL.
4986 Examples: []
4987 Anchorize:
4988 Aliases:
4989 - anchorize
4990 Args:
4991 - s
4992 Description: |-
4993 Anchorize creates sanitized anchor name version of the string s that is compatible
4994 with how your configured markdown renderer does it.
4995 Examples:
4996 - - '{{ "This is a title" | anchorize }}'
4997 - this-is-a-title
4998 JoinPath:
4999 Aliases: null
5000 Args:
5001 - elements
5002 Description: |-
5003 JoinPath joins the provided elements into a URL string and cleans the result
5004 of any ./ or ../ elements. If the argument list is empty, JoinPath returns
5005 an empty string.
5006 Examples:
5007 - - '{{ urls.JoinPath "https://example.org" "foo" }}'
5008 - https://example.org/foo
5009 - - '{{ urls.JoinPath (slice "a" "b") }}'
5010 - a/b
5011 Parse:
5012 Aliases: null
5013 Args:
5014 - rawurl
5015 Description: |-
5016 Parse parses rawurl into a URL structure. The rawurl may be relative or
5017 absolute.
5018 Examples: []
5019 PathEscape:
5020 Aliases: null
5021 Args:
5022 - s
5023 Description: |-
5024 PathEscape returns the given string, applying percent-encoding to special
5025 characters and reserved delimiters so it can be safely used as a segment
5026 within a URL path.
5027 Examples: []
5028 PathUnescape:
5029 Aliases: null
5030 Args:
5031 - s
5032 Description: |-
5033 PathUnescape returns the given string, replacing all percent-encoded
5034 sequences with the corresponding unescaped characters.
5035 Examples: []
5036 Ref:
5037 Aliases:
5038 - ref
5039 Args:
5040 - p
5041 - args
5042 Description: Ref returns the absolute URL path to a given content item from Page p.
5043 Examples: []
5044 RelLangURL:
5045 Aliases:
5046 - relLangURL
5047 Args:
5048 - s
5049 Description: |-
5050 RelLangURL takes the string s and prepends the relative path according to a
5051 page's position in the project directory structure and the current language.
5052 Examples: []
5053 RelRef:
5054 Aliases:
5055 - relref
5056 Args:
5057 - p
5058 - args
5059 Description: RelRef returns the relative URL path to a given content item from Page p.
5060 Examples: []
5061 RelURL:
5062 Aliases:
5063 - relURL
5064 Args:
5065 - s
5066 Description: |-
5067 RelURL takes the string s and prepends the relative path according to a
5068 page's position in the project directory structure.
5069 Examples: []
5070 URLize:
5071 Aliases:
5072 - urlize
5073 Args:
5074 - s
5075 Description: URLize returns the strings s formatted as an URL.
5076 Examples: []