mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 14:16:06 +00:00
Fix local files shortcode
This commit is contained in:
1 parent
1890155a0a
commit
ce58bedeb8
1 file changed
+2
-6
@@ -38,13 +38,9 @@ in effect becomes both:
|
|||||||
|
|
||||||
So, let's create a new shortcode using `readDir`:
|
So, let's create a new shortcode using `readDir`:
|
||||||
|
|
||||||
**layouts/shortcodes/directoryindex.html**
|
{{% input "layouts/shortcodes/directoryindex.html" %}}<pre><code>{{< readfile "layouts/shortcodes/directoryindex.html" >}}</code></pre>{{% /input %}}
|
||||||
|
|
||||||
```html
|
For the files in any given directory, this shortcode usefully lists the files' basenames and sizes and also creates a link to each of them.
|
||||||
{{< 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.
|
|
||||||
|
|
||||||
This shortcode [has already been included in this very web site][].
|
This shortcode [has already been included in this very web site][].
|
||||||
So, let's list some of its CSS files. (If you click on their names, you can reveal the contents.)
|
So, let's list some of its CSS files. (If you click on their names, you can reveal the contents.)
|
||||||
|
|||||||
Reference in new issue
Block a user