summaryrefslogtreecommitdiff
path: root/themes/CodeIT/layouts/partials/function
diff options
context:
space:
mode:
Diffstat (limited to 'themes/CodeIT/layouts/partials/function')
-rw-r--r--themes/CodeIT/layouts/partials/function/content.html26
1 files changed, 15 insertions, 11 deletions
diff --git a/themes/CodeIT/layouts/partials/function/content.html b/themes/CodeIT/layouts/partials/function/content.html
index f1d7ce8..250a5b7 100644
--- a/themes/CodeIT/layouts/partials/function/content.html
+++ b/themes/CodeIT/layouts/partials/function/content.html
@@ -1,19 +1,23 @@
{{- $content := .Content -}}
-{{- if .Ruby -}}
- {{- $content = partial "function/ruby.html" $content -}}
-{{- end -}}
+{{- if $content -}}
-{{- if .Fraction -}}
- {{- $content = partial "function/fraction.html" $content -}}
-{{- end -}}
+ {{- if .Ruby -}}
+ {{- $content = partial "function/ruby.html" $content -}}
+ {{- end -}}
-{{- if .Fontawesome -}}
- {{- $content = partial "function/fontawesome.html" $content -}}
-{{- end -}}
+ {{- if .Fraction -}}
+ {{- $content = partial "function/fraction.html" $content -}}
+ {{- end -}}
-{{- $content = partial "function/checkbox.html" $content -}}
+ {{- if .Fontawesome -}}
+ {{- $content = partial "function/fontawesome.html" $content -}}
+ {{- end -}}
-{{- $content = partial "function/escape.html" $content -}}
+ {{- $content = partial "function/checkbox.html" $content -}}
+
+ {{- $content = partial "function/escape.html" $content -}}
+
+{{- end -}}
{{- return $content -}}