mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-09-03 04:02:40 +00:00
🐛 Fix: Check if content is empty beforing passing
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
- :arrow_up: Chore: update all third-party libraries
|
||||
- :wrench: Chore: minify card-link background image
|
||||
- :wrench: Chore(i18n): change some translations
|
||||
- :bug: Fix: Check if content is empty beforing passing
|
||||
|
||||
## v0.2.11
|
||||
|
||||
|
||||
@@ -1,19 +1,23 @@
|
||||
{{- $content := .Content -}}
|
||||
|
||||
{{- if .Ruby -}}
|
||||
{{- if ne "" $content -}}
|
||||
|
||||
{{- if .Ruby -}}
|
||||
{{- $content = partial "function/ruby.html" $content -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if .Fraction -}}
|
||||
{{- if .Fraction -}}
|
||||
{{- $content = partial "function/fraction.html" $content -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if .Fontawesome -}}
|
||||
{{- if .Fontawesome -}}
|
||||
{{- $content = partial "function/fontawesome.html" $content -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $content = partial "function/checkbox.html" $content -}}
|
||||
|
||||
{{- $content = partial "function/escape.html" $content -}}
|
||||
|
||||
{{- end -}}
|
||||
|
||||
{{- $content = partial "function/checkbox.html" $content -}}
|
||||
|
||||
{{- $content = partial "function/escape.html" $content -}}
|
||||
|
||||
{{- return $content -}}
|
||||
|
||||
Reference in New Issue
Block a user