Remove page param from resource.html

This commit is contained in:
Will Faught
2023-04-23 21:42:58 -07:00
parent de7bd8d243
commit 9f18874c4c
4 changed files with 8 additions and 13 deletions

View File

@@ -1,7 +1,4 @@
{{ $params := . }}
{{ $page := $params.page }}
{{ $url := $params.url }}
{{ $url := . }}
{{ $result := "" }}
@@ -15,11 +12,11 @@
{{ end }}
{{ end }}
{{ if and (not $result) $page }}
{{ with $page.Resources.GetMatch $url }}
{{ if and (not $result) page }}
{{ with page.Resources.GetMatch $url }}
{{ $result = . }}
{{ else }}
{{ with $page.Resources.Get $url }}
{{ with page.Resources.Get $url }}
{{ $result = . }}
{{ end }}
{{ end }}