mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 17:34:50 -04:00
Rename scratch var
This commit is contained in:
parent
44193f267d
commit
696fa92e11
@ -10,12 +10,12 @@ Usage: {{< getcontent path="PATH/TO/FILE" >}}
|
||||
{{ $scratch := newScratch -}}
|
||||
{{ with $glob -}}
|
||||
{{ $bundle := site.GetPage $path -}}
|
||||
{{ $scratch.Set "pages" ($bundle.Resources.Match $glob) -}}
|
||||
{{ $scratch.Set "resources" ($bundle.Resources.Match $glob) -}}
|
||||
{{ else -}}
|
||||
{{ $bundle := site.GetPage (path.Dir $path) -}}
|
||||
{{ $scratch.Set "pages" ($bundle.Resources.Match (path.Base $path)) -}}
|
||||
{{ $scratch.Set "resources" ($bundle.Resources.Match (path.Base $path)) -}}
|
||||
{{ end -}}
|
||||
|
||||
{{ range ($scratch.Get "pages") -}}
|
||||
{{ range ($scratch.Get "resources") -}}
|
||||
{{ .Content }}
|
||||
{{ end -}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user