hugo/docs/content/en/readfiles
2023-08-30 19:24:34 +02:00
..
dateformatting.md Merge commit '87de22d7464e239c775fbd48ebce1665d5b1e80d' 2023-07-29 11:17:28 +02:00
index.md Merge commit 'b9bd35d72e14932fb6588ff62b90cddef0a060fc' as 'docs' 2019-10-21 10:22:28 +02:00
README.md Merge commit 'b9bd35d72e14932fb6588ff62b90cddef0a060fc' as 'docs' 2019-10-21 10:22:28 +02:00
sectionvars.md Fix crashes for 404 in IsAncestor etc. 2020-02-22 13:36:04 +01:00
testing.txt Merge commit 'b9bd35d72e14932fb6588ff62b90cddef0a060fc' as 'docs' 2019-10-21 10:22:28 +02:00

readdirs Directory for Reusable Content

Files in this directory are:

  1. Used in more than one place within the Hugo docs
  2. Used in Examples of readdir (i.e. in local file templates)

These files are called using the readfile shortcode (source).

You can call this shortcode in the docs as follows:

{{% readfile file="/path/to/file.txt" markdown="true" %}}

markdown="true" is optional (default = "false") and parses the string through the Blackfriday renderer.