@@ -1038,6 +1038,7 @@ chroma:
10381038 - zig
10391039 Name : Zig
10401040 styles :
1041+ - RPGLE
10411042 - abap
10421043 - algol
10431044 - algol_nu
@@ -1090,7 +1091,6 @@ chroma:
10901091 - rose-pine
10911092 - rose-pine-dawn
10921093 - rose-pine-moon
1093- - rpgle
10941094 - rrt
10951095 - solarized-dark
10961096 - solarized-dark256
@@ -2208,12 +2208,12 @@ tpl:
22082208 Description : |-
22092209 Append appends args up to the last one to the slice in the last argument.
22102210 This construct allows template constructs like this:
2211-
2211+
22122212 {{ $pages = $pages | append $p2 $p1 }}
2213-
2213+
22142214 Note that with 2 arguments where both are slices of the same type,
22152215 the first slice will be appended to the second:
2216-
2216+
22172217 {{ $pages = $pages | append .Site.RegularPages }}
22182218 Examples : []
22192219 Apply :
@@ -2234,11 +2234,11 @@ tpl:
22342234 Description : |-
22352235 Complement gives the elements in the last element of ls that are not in
22362236 any of the others.
2237-
2237+
22382238 All elements of ls must be slices or arrays of comparable types.
2239-
2239+
22402240 The reasoning behind this rather clumsy API is so we can do this in the templates:
2241-
2241+
22422242 {{ $c := .Pages | complement $last4 }}
22432243 Examples :
22442244 - - '{{ slice "a" "b" "c" "d" "e" "f" | complement (slice "b" "c") (slice "d" "e") }}'
@@ -2313,9 +2313,9 @@ tpl:
23132313 Index returns the result of indexing its first argument by the following
23142314 arguments. Thus "index x 1 2 3" is, in Go syntax, x[1][2][3]. Each
23152315 indexed item must be a map, slice, or array.
2316-
2316+
23172317 Adapted from Go stdlib src/text/template/funcs.go.
2318-
2318+
23192319 We deviate from the stdlib mostly because of https://github.com/golang/go/issues/14751.
23202320 Examples : []
23212321 Intersect :
@@ -2365,7 +2365,7 @@ tpl:
23652365 Description : |-
23662366 Merge creates a copy of the final parameter in params and merges the preceding
23672367 parameters into it in reverse order.
2368-
2368+
23692369 Currently only maps are supported. Key handling is case insensitive.
23702370 Examples :
23712371 - - '{{ dict "title" "Hugo Rocks!" | collections.Merge (dict "title" "Default Title" "description" "Yes, Hugo Rocks!") | sort }}'
@@ -2412,9 +2412,9 @@ tpl:
24122412 - args
24132413 Description : |-
24142414 Seq creates a sequence of integers from args. It's named and used as GNU's seq.
2415-
2415+
24162416 Examples:
2417-
2417+
24182418 3 => 1, 2, 3
24192419 1 2 4 => 1, 3
24202420 -3 => -1, -2, -3
@@ -2503,7 +2503,7 @@ tpl:
25032503 - v2
25042504 Description : |-
25052505 Conditional can be used as a ternary operator.
2506-
2506+
25072507 It returns v1 if cond is true, else v2.
25082508 Examples :
25092509 - - '{{ cond (eq (add 2 2) 4) "2+2 is 4" "what?" | safeHTML }}'
@@ -2679,10 +2679,10 @@ tpl:
26792679 Dump returns a object dump of val as a string.
26802680 Note that not every value passed to Dump will print so nicely, but
26812681 we'll improve on that.
2682-
2682+
26832683 We recommend using the "go" Chroma lexer to format the output
26842684 nicely.
2685-
2685+
26862686 Also note that the output from Dump may change from Hugo version to the next,
26872687 so don't depend on a specific output.
26882688 Examples :
@@ -3104,7 +3104,7 @@ tpl:
31043104 - v
31053105 Description : |-
31063106 Humanize returns the humanized form of v.
3107-
3107+
31083108 If v is either an integer or a string containing an integer
31093109 value, the behavior is to add the appropriate ordinal.
31103110 Examples :
@@ -3168,7 +3168,7 @@ tpl:
31683168 Description : |-
31693169 FormatAccounting returns the currency representation of number for the given currency and precision
31703170 for the current language in accounting notation.
3171-
3171+
31723172 The return value is formatted with at least two decimal places.
31733173 Examples :
31743174 - - '{{ 512.5032 | lang.FormatAccounting 2 "NOK" }}'
@@ -3182,7 +3182,7 @@ tpl:
31823182 Description : |-
31833183 FormatCurrency returns the currency representation of number for the given currency and precision
31843184 for the current language.
3185-
3185+
31863186 The return value is formatted with at least two decimal places.
31873187 Examples :
31883188 - - '{{ 512.5032 | lang.FormatCurrency 2 "USD" }}'
@@ -3790,16 +3790,16 @@ tpl:
37903790 so if you organize your resources in sub-folders, you need to be explicit about it, e.g.:
37913791 "images/*.png". To match any PNG image anywhere in the bundle you can do "**.png", and
37923792 to match all PNG images below the images folder, use "images/**.jpg".
3793-
3793+
37943794 The matching is case insensitive.
3795-
3795+
37963796 Match matches by using the files name with path relative to the file system root
37973797 with Unix style slashes (/) and no leading slash, e.g. "images/logo.png".
3798-
3798+
37993799 See https://github.com/gobwas/glob for the full rules set.
3800-
3800+
38013801 It looks for files in the assets file system.
3802-
3802+
38033803 See Match for a more complete explanation about the rules used.
38043804 Examples : []
38053805 Minify :
@@ -4145,7 +4145,7 @@ tpl:
41454145 expression in content. Each element is a slice of strings holding the text
41464146 of the leftmost match of the regular expression and the matches, if any, of
41474147 its subexpressions.
4148-
4148+
41494149 By default all matches will be included. The number of matches can be
41504150 limited with the optional limit parameter. A return value of nil indicates
41514151 no match.
@@ -4518,7 +4518,7 @@ tpl:
45184518 - s
45194519 Description : |-
45204520 Emojify returns a copy of s with all emoji codes replaced with actual emojis.
4521-
4521+
45224522 See http://www.emoji-cheat-sheet.com/
45234523 Examples :
45244524 - - '{{ "I :heart : Hugo" | emojify }}'
0 commit comments