mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
b9bd35d72e
git-subtree-dir: docs git-subtree-split: fdea5430f89dfd849d39212abdf5ace0a4763e5a
557 B
557 B
readdirs Directory for Reusable Content
Files in this directory are:
- Used in more than one place within the Hugo docs
- 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.