Skip page if nil

This commit is contained in:
Will Faught
2023-03-02 20:39:57 -08:00
parent 8d15e670a5
commit 81e020d2d9

View File

@@ -13,20 +13,24 @@
{{ $result = . }}
{{ end }}
{{ end }}
{{ else }}
{{ end }}
{{ if and (not $result) $page }}
{{ with $page.Resources.GetMatch $url }}
{{ $result = . }}
{{ else }}
{{ with $page.Resources.Get $url }}
{{ $result = . }}
{{ else }}
{{ with resources.GetMatch $url }}
{{ $result = . }}
{{ else }}
{{ with resources.Get $url }}
{{ $result = . }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ if not $result }}
{{ with resources.GetMatch $url }}
{{ $result = . }}
{{ else }}
{{ with resources.Get $url }}
{{ $result = . }}
{{ end }}
{{ end }}
{{ end }}