diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2021-06-26 12:03:11 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2021-06-26 12:03:11 +0800 |
commit | 29f69dcc2aacc5a100e5d15d1decf0a8d1f15cac (patch) | |
tree | 304192fc2ab385af008c4d1171209b2297eeb9f3 /_includes | |
parent | 2d43e8944e041334b71b874cc87decec5f021919 (diff) |
fix: wrong default value of calling functions
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/functions.html | 4 |
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}} |