summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-07-15 23:50:56 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-07-15 23:50:56 +0200
commit05d0eddd2bfce4622462428c66c1a9e3abdde614 (patch)
treed5154990025e77a12f4872db494c00f7287d1ebc /docs/content/en/functions
parentc624a77992c4f7c1bcb5f659e89332d8588986b7 (diff)
parent35febb2e2a3780c3338a2665fddea7dda28a17f4 (diff)
Diffstat (limited to 'docs/content/en/functions')
-rw-r--r--docs/content/en/functions/format.md5
-rw-r--r--docs/content/en/functions/readfile.md2
-rw-r--r--docs/content/en/functions/templates.Exists.md4
-rw-r--r--docs/content/en/functions/title.md4
4 files changed, 12 insertions, 3 deletions
diff --git a/docs/content/en/functions/format.md b/docs/content/en/functions/format.md
index fef4d85da..cdcec2fb3 100644
--- a/docs/content/en/functions/format.md
+++ b/docs/content/en/functions/format.md
@@ -87,9 +87,11 @@ date: 2017-03-03T14:15:59-06:00
`"Mon, 02 Jan 2006 15:04:05 MST"` (RFC1123)
: **Returns**: `Fri, 03 Mar 2017 14:15:59 CST`
-`"Mon, 02 Jan 2006 15:04:05 -0700"` (RFC339)
+`"Mon, 02 Jan 2006 15:04:05 -0700"` (RFC1123Z)
: **Returns**: `Fri, 03 Mar 2017 14:15:59 -0600`
+More examples can be found in Go's [documentation for the time package][timeconst].
+
### Cardinal Numbers and Ordinal Abbreviations
Spelled-out cardinal numbers (e.g. "one", "two", and "three") and ordinal abbreviations (i.e., with shorted suffixes like "1st", "2nd", and "3rd") are not currently supported:
@@ -121,3 +123,4 @@ In conjunction with the [`dateFormat` function][dateFormat], you can also conver
[gdex]: https://golang.org/pkg/time/#example_Time_Format
[pagevars]: /variables/page/
[time]: https://golang.org/pkg/time/
+[timeconst]: https://golang.org/pkg/time/#ANSIC
diff --git a/docs/content/en/functions/readfile.md b/docs/content/en/functions/readfile.md
index bcd845c96..ca7f23075 100644
--- a/docs/content/en/functions/readfile.md
+++ b/docs/content/en/functions/readfile.md
@@ -28,6 +28,8 @@ So, if you have a file with the name `README.txt` in the root of your project wi
If you receive a "file doesn't exist" error with a path listed, do take note that the path is the last one checked by the function, and may not accurately reflect your target. You should generally double-check your path for mistakes.
+Note that there is a 1 MB file size limit.
+
For more information on using `readDir` and `readFile` in your templates, see [Local File Templates][local].
[local]: /templates/files/
diff --git a/docs/content/en/functions/templates.Exists.md b/docs/content/en/functions/templates.Exists.md
index 919a9c3b7..3c8c96156 100644
--- a/docs/content/en/functions/templates.Exists.md
+++ b/docs/content/en/functions/templates.Exists.md
@@ -24,7 +24,7 @@ deprecated: false
A template file is any file living below the `layouts` directories of either the project or any of its theme components incudling partials and shortcodes.
-The function is particulary handy with dynamic path. The following example ensures the build will not break on a `.Type` missing its dedicated `header` partial.
+The function is particularly handy with dynamic path. The following example ensures the build will not break on a `.Type` missing its dedicated `header` partial.
```go-html-template
{{ $partialPath := printf "headers/%s.html" .Type }}
@@ -34,4 +34,4 @@ The function is particulary handy with dynamic path. The following example ensur
{{ partial "headers/default.html" . }}
{{ end }}
-``` \ No newline at end of file
+```
diff --git a/docs/content/en/functions/title.md b/docs/content/en/functions/title.md
index 63a34835f..da4054bbd 100644
--- a/docs/content/en/functions/title.md
+++ b/docs/content/en/functions/title.md
@@ -31,3 +31,7 @@ Can be combined in pipes. In the following snippet, the link text is cleaned up
<li><a href="{{ printf "%s/%s" "categories" ($name | urlize | lower) | absURL }}">{{ $name | humanize | title }} ({{ len $items }})</a></li>
{{ end }}
```
+
+## Configure Title Case
+
+The default is AP Stylebook, but you can [configure it](/getting-started/configuration/#configure-title-case).