hugo/content/en/readfiles
Bjørn Erik Pedersen b9bd35d72e Squashed 'docs/' content from commit fdea5430f
git-subtree-dir: docs
git-subtree-split: fdea5430f89dfd849d39212abdf5ace0a4763e5a
2019-10-21 10:22:28 +02:00
..
bfconfig.md Squashed 'docs/' content from commit fdea5430f 2019-10-21 10:22:28 +02:00
dateformatting.md Squashed 'docs/' content from commit fdea5430f 2019-10-21 10:22:28 +02:00
index.md Squashed 'docs/' content from commit fdea5430f 2019-10-21 10:22:28 +02:00
pages-vs-site-pages.md Squashed 'docs/' content from commit fdea5430f 2019-10-21 10:22:28 +02:00
README.md Squashed 'docs/' content from commit fdea5430f 2019-10-21 10:22:28 +02:00
sectionvars.md Squashed 'docs/' content from commit fdea5430f 2019-10-21 10:22:28 +02:00
testing.txt Squashed 'docs/' content from commit fdea5430f 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.