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:
Annie-Claude Morin 2018-12-21 11:48:16 -05:00 committed by Bjørn Erik Pedersen
parent 7145e29e24
commit 08c9f8fc89

View File

@ -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/