aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/function-paths.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-07-10 00:09:15 -0400
committertdro <tdro@noreply.example.com>2022-07-10 00:09:15 -0400
commit56afea8037ba5476ac2338503e77d5a1fd82fb7f (patch)
treee27ee9928b6ccec3179fef8b6687ece085fa62d0 /themes/default/layouts/partials/function-paths.html
parent734ca16734e01d4b2808e8468ecf7f863a5e32c5 (diff)
downloadcanory-56afea8037ba5476ac2338503e77d5a1fd82fb7f.tar.gz
canory-56afea8037ba5476ac2338503e77d5a1fd82fb7f.tar.bz2
canory-56afea8037ba5476ac2338503e77d5a1fd82fb7f.zip
themes/default/layouts/partials/function-paths: Collect paths functions here
Diffstat (limited to 'themes/default/layouts/partials/function-paths.html')
-rw-r--r--themes/default/layouts/partials/function-paths.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/function-paths.html b/themes/default/layouts/partials/function-paths.html
new file mode 100644
index 0000000..74d285c
--- /dev/null
+++ b/themes/default/layouts/partials/function-paths.html
@@ -0,0 +1,7 @@
+{{- $path := . -}}
+
+{{- if eq $path "markdown" -}} {{- $path := "data/generates/content" -}} {{- end -}}
+{{- if eq $path "media" -}} {{- $path := "data/media" -}} {{- end -}}
+{{- if eq $path "static" -}} {{- $path := "static" -}} {{- end -}}
+
+{{- return $path -}}