hugo/docs/content/en/readfiles
2019-03-04 11:27:18 +01:00
..
bfconfig.md Add skipHTML option to blackfriday config 2019-03-04 11:27:18 +01:00
dateformatting.md
index.md
pages-vs-site-pages.md Merge commit '766085c2dc6fc95ac30fda2a9ebde2355fc12554' 2018-08-01 10:01:49 +02:00
README.md
sectionvars.md
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.