Merge commit '00c4484c7092181729f6f470805bc7d72e8ad17b'

This commit is contained in:
Bjørn Erik Pedersen
2022-11-17 16:16:19 +01:00
217 changed files with 2437 additions and 2821 deletions

View File

@@ -1,12 +1,12 @@
Go templates [format your dates][time] according to a single reference time:
```
```txt
Mon Jan 2 15:04:05 MST 2006
```
You can think of `MST` as `07`, thus making the reference format string a sequence of numbers. The following is [taken directly from the Go docs][gdex]:
```
```txt
Jan 2 15:04:05 2006 MST
1 2 3 4 5 6 -7
```
@@ -17,7 +17,7 @@ Each of the following examples show the reference formatting string followed by
Note that the examples were rendered and tested in [CST][] and pull from a single example date you might have in your content's front matter:
```
```yml
date: 2017-03-03T14:15:59-06:00
```
@@ -60,13 +60,13 @@ Spelled-out cardinal numbers (e.g. "one", "two", and "three") and ordinal abbrev
To continue with the example above:
```
```go-html-template
{{.Date.Format "Jan 2nd 2006"}}
```
Hugo assumes you want to append `nd` as a string to the day of the month and outputs the following:
```
```txt
Mar 3nd 2017
```
@@ -84,4 +84,4 @@ In conjunction with the [`dateFormat` function][dateFormat], you can also conver
[dateFormat]: /functions/dateformat/
[gdex]: https://golang.org/pkg/time/#example_Time_Format
[pagevars]: /variables/page/
[time]: https://golang.org/pkg/time/
[time]: https://golang.org/pkg/time/

View File

@@ -27,7 +27,7 @@ the current _list_ page:
current _list_ page. This **excludes** regular pages in nested sections/_list_ pages (those are subdirectories with an `_index.md` file.
`.RegularPagesRecursive`
: {{< new-in "0.68.0" >}} Collection of **all** _regular_ pages under a _list_ page. This **includes** regular pages in nested sections/_list_ pages.
: Collection of **all** _regular_ pages under a _list_ page. This **includes** regular pages in nested sections/_list_ pages.
Note
: From the scope of _regular_ pages, `.Pages` and