From 29f69dcc2aacc5a100e5d15d1decf0a8d1f15cac Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Sat, 26 Jun 2021 12:03:11 +0800 Subject: [PATCH] fix: wrong default value of calling functions --- _includes/functions.html | 4 ++++ 1 file changed, 4 insertions(+) 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}}