Skip page if nil
This commit is contained in:
@@ -13,13 +13,19 @@
|
|||||||
{{ $result = . }}
|
{{ $result = . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if and (not $result) $page }}
|
||||||
{{ with $page.Resources.GetMatch $url }}
|
{{ with $page.Resources.GetMatch $url }}
|
||||||
{{ $result = . }}
|
{{ $result = . }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ with $page.Resources.Get $url }}
|
{{ with $page.Resources.Get $url }}
|
||||||
{{ $result = . }}
|
{{ $result = . }}
|
||||||
{{ else }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if not $result }}
|
||||||
{{ with resources.GetMatch $url }}
|
{{ with resources.GetMatch $url }}
|
||||||
{{ $result = . }}
|
{{ $result = . }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
@@ -27,8 +33,6 @@
|
|||||||
{{ $result = . }}
|
{{ $result = . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if not $result }}
|
{{ if not $result }}
|
||||||
|
Reference in New Issue
Block a user