mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Fix shortcode language in local file templates that was breaking Netlify build
This commit is contained in:
@@ -111,11 +111,11 @@ See [site configuration][] for more information.
|
||||
|
||||
## 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
|
||||
|
||||
|
||||
@@ -38,18 +38,18 @@ in effect becomes both:
|
||||
So, let's create a new shortcode using `readDir`:
|
||||
|
||||
**layouts/shortcodes/directoryindex.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.
|
||||
|
||||
Already—actually—this shortcode
|
||||
has 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.)
|
||||
{{< directoryindex path="/static/css" pathURL="/css" >}}
|
||||
{{</* directoryindex path="/static/css" pathURL="/css" */>}}
|
||||
<br />
|
||||
This is the call that rendered the above output:
|
||||
```html
|
||||
|
||||
Reference in New Issue
Block a user