mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-08 01:04:37 -04:00
Mention 1 MB file size limit in readFile doc
The code has a hard coded limit of 1 MB in https://github.com/gohugoio/hugo/blob/master/tpl/os/os.go#L68 Now it's in the documentation too.
This commit is contained in:
parent
7145e29e24
commit
08c9f8fc89
@ -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/
|
||||
|
Loading…
x
Reference in New Issue
Block a user