summaryrefslogtreecommitdiff
path: root/themes/CodeIT/layouts/partials/function/resource.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/CodeIT/layouts/partials/function/resource.html')
-rw-r--r--themes/CodeIT/layouts/partials/function/resource.html16
1 files changed, 0 insertions, 16 deletions
diff --git a/themes/CodeIT/layouts/partials/function/resource.html b/themes/CodeIT/layouts/partials/function/resource.html
deleted file mode 100644
index 2febef3..0000000
--- a/themes/CodeIT/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 -}}