diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2020-09-29 12:54:54 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2020-09-29 12:54:54 +0800 |
commit | a7d8a2977d6110d1f8778b8ae02067982a5e43a7 (patch) | |
tree | 6f4f0fa9332ce325c99d8b769814408a7888d760 /_includes/functions.html | |
parent | 0e8b292bd00ffa4bef4d8aeb436696a7d218243a (diff) |
fix: some function params not working
Diffstat (limited to '_includes/functions.html')
-rw-r--r-- | _includes/functions.html | 7 |
1 files changed, 4 insertions, 3 deletions
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' -%} |