"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/content/en/functions/readfile.md" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

readfile.md  (hugo-0.80.0):readfile.md  (hugo-0.81.0)
skipping to change at line 31 skipping to change at line 31
Note that the filename must be relative to the current project working directory , or the project's `/content` folder. Note that the filename must be relative to the current project working directory , or the project's `/content` folder.
So, if you have a file with the name `README.txt` in the root of your project wi th the content `Hugo Rocks!`: So, if you have a file with the name `README.txt` in the root of your project wi th the content `Hugo Rocks!`:
``` ```
{{readFile "README.txt"}} → "Hugo Rocks!" {{readFile "README.txt"}} → "Hugo Rocks!"
``` ```
If you receive a "file doesn't exist" error with a path listed, do take note tha t the path is the last one checked by the function, and may not accurately refle ct your target. You should generally double-check your path for mistakes. If you receive a "file doesn't exist" error with a path listed, do take note tha t the path is the last one checked by the function, and may not accurately refle ct 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 [L ocal File Templates][local]. For more information on using `readDir` and `readFile` in your templates, see [L ocal File Templates][local].
[local]: /templates/files/ [local]: /templates/files/
 End of changes. 1 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)