From a7d8a2977d6110d1f8778b8ae02067982a5e43a7 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Tue, 29 Sep 2020 12:54:54 +0800 Subject: fix: some function params not working --- _includes/functions.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '_includes/functions.html') diff --git a/_includes/functions.html b/_includes/functions.html index 3f9fee2..69e3d5a 100644 --- a/_includes/functions.html +++ b/_includes/functions.html @@ -1,5 +1,6 @@ -{%- if include.func -%} - {%- assign func = include.func -%} +{%- assign params = include -%} +{%- if params.func -%} + {%- assign func = params.func -%} {%- endif -%} {%- assign include_path = func -%} @@ -12,7 +13,7 @@ {%- include functions/log.html level=include.level msg=include.msg -%} {%- else -%} {%- assign include_path = 'functions/' | append: include_path -%} - {%- include {{ include_path }} -%} + {%- include {{ include_path }} params=params-%} {%- endif -%} {%- if func != 'log' -%} -- cgit v1.2.3