diff options
Diffstat (limited to 'themes/LoveIt/layouts/partials/function/resource.html')
-rw-r--r-- | themes/LoveIt/layouts/partials/function/resource.html | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/themes/LoveIt/layouts/partials/function/resource.html b/themes/LoveIt/layouts/partials/function/resource.html deleted file mode 100644 index 2febef3..0000000 --- a/themes/LoveIt/layouts/partials/function/resource.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- $resource := 0 -}} -{{- $url := urls.Parse .Path -}} -{{- if not $url.Host | and $url.Path | and (strings.HasSuffix $url.Path "/" | not) -}} - {{- if .Resources -}} - {{- with .Resources.GetMatch $url.Path -}} - {{- $resource = . -}} - {{- end -}} - {{- end -}} - {{- if not $resource -}} - {{- with resources.Get $url.Path -}} - {{- $resource = . -}} - {{- end -}} - {{- end -}} -{{- end -}} - -{{- return $resource -}} |