summaryrefslogtreecommitdiff
path: root/_includes/functions.html
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2021-06-26 12:03:11 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2021-06-26 12:03:11 +0800
commit29f69dcc2aacc5a100e5d15d1decf0a8d1f15cac (patch)
tree304192fc2ab385af008c4d1171209b2297eeb9f3 /_includes/functions.html
parent2d43e8944e041334b71b874cc87decec5f021919 (diff)
fix: wrong default value of calling functions
Diffstat (limited to '_includes/functions.html')
-rw-r--r--_includes/functions.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/_includes/functions.html b/_includes/functions.html
index 69e3d5a..5c00bb5 100644
--- a/_includes/functions.html
+++ b/_includes/functions.html
@@ -16,6 +16,10 @@
{%- include {{ include_path }} params=params-%}
{%- endif -%}
+{%- if return == nil -%}
+ {%- assign return = include.default -%}
+{%- endif -%}
+
{%- if func != 'log' -%}
{%- assign msg = '[function]['
| append: {{func}}