hugo/docs/content/en/readfiles
2020-05-31 12:43:33 +02:00
..
dateformatting.md
index.md
pages-vs-site-pages.md Merge commit '9e1dcefc5f559944b70d2fa520f6acd5c56a69f2' 2020-05-31 12:43:33 +02:00
README.md
sectionvars.md Fix crashes for 404 in IsAncestor etc. 2020-02-22 13:36:04 +01:00
testing.txt

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.