Use Hugo's partial-returning where possible
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
{{- $scratch := newScratch -}}
|
||||
{{- partial "geturl.html" (dict "scratch" $scratch "path" (.Get 0)) -}}
|
||||
{{- $scratch.Get "bestUrl" -}}
|
||||
{{- $url := partial "geturl.html" (dict "path" (.Get 0)) -}}
|
||||
{{- $url.url -}}
|
||||
|
||||
Reference in New Issue
Block a user