mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
Add shortcode from live site for readfile example in local files template
This commit is contained in:
1 parent
ed70c14a2b
commit
b8fba275b3
1 file changed
+1
-1
@@ -41,7 +41,7 @@ So, let's create a new shortcode using `readDir`:
|
|||||||
**layouts/shortcodes/directoryindex.html**
|
**layouts/shortcodes/directoryindex.html**
|
||||||
|
|
||||||
```html
|
```html
|
||||||
{{</* readfile "layouts/shortcodes/directoryindex.html" */>}}
|
{{< readfile "layouts/shortcodes/directoryindex.html" >}}
|
||||||
```
|
```
|
||||||
|
|
||||||
For the files in any given directory, this shortcode usefully lists their basenames and sizes, while providing links to them.
|
For the files in any given directory, this shortcode usefully lists their basenames and sizes, while providing links to them.
|
||||||
|
|||||||
Reference in new issue
Block a user