mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
Fix shortcode language in local file templates that was breaking Netlify build
This commit is contained in:
1 parent
2cb5ad8edd
commit
55aae645d6
2 files changed
+8
-8
No files matched your search
@@ -111,11 +111,11 @@ See [site configuration][] for more information.
|
|||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
|
||||||
## Ordering Content
|
## Assigning `weight` for Ordering
|
||||||
|
|
||||||
### Assigning `weight` to Content
|
### Assigning `weight` for Ordering Content
|
||||||
|
|
||||||
### Assigning `weight` to Taxonomies
|
### Assigning `weight` for Ordering Taxonomies
|
||||||
|
|
||||||
## Front Matter Format Specs
|
## Front Matter Format Specs
|
||||||
|
|
||||||
|
|||||||
@@ -38,18 +38,18 @@ 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**
|
**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,
|
For the files in any given directory, this shortcode usefully lists their basenames and sizes, while providing links to them.
|
||||||
while providing links to them.
|
|
||||||
|
|
||||||
Already—actually—this shortcode
|
Already—actually—this shortcode
|
||||||
has been included in this very web site.
|
has been included in this very web site.
|
||||||
So, let's list some of its CSS files.
|
So, let's list some of its CSS files.
|
||||||
(If you click on their names, you can reveal the contents.)
|
(If you click on their names, you can reveal the contents.)
|
||||||
{{< directoryindex path="/static/css" pathURL="/css" >}}
|
{{</* directoryindex path="/static/css" pathURL="/css" */>}}
|
||||||
<br />
|
<br />
|
||||||
This is the call that rendered the above output:
|
This is the call that rendered the above output:
|
||||||
```html
|
```html
|
||||||
|
|||||||
Reference in new issue
Block a user