+ add training page (add admonition shortcode)
+ Finish translation + clean unused asset
This commit is contained in:
17
themes/tse/layouts/partials/function/resource.html
Normal file
17
themes/tse/layouts/partials/function/resource.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{- $resource := 0 -}}
|
||||
{{- $url := urls.Parse .Path -}}
|
||||
{{- if not (partial "function/isUrlRemote.html" $url) -}}
|
||||
{{- $dest := strings.TrimPrefix "./" $url.Path -}}
|
||||
{{- if .Resources -}}
|
||||
{{- with .Resources.GetMatch $dest -}}
|
||||
{{- $resource = . -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if not $resource -}}
|
||||
{{- with resources.Get $dest -}}
|
||||
{{- $resource = . -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- return $resource -}}
|
||||
Reference in New Issue
Block a user