diff --git a/layouts/shortcodes/getDataFilesName.html b/layouts/shortcodes/getDataFilesName.html index 25d7a3ba..f16bfc51 100644 --- a/layouts/shortcodes/getDataFilesName.html +++ b/layouts/shortcodes/getDataFilesName.html @@ -10,7 +10,7 @@ function getAbsFilesName(){ {{- $list = $list | append (path.Join $subdir .Name) }} {{- end }} {{- end }} - var files=JSON.parse({{ jsonify $list }}) + var files={{ $list }} return files } {{- $subdir := "fluo" }} @@ -23,7 +23,7 @@ function getFluoFilesName(){ {{- $list = $list | append (path.Join $subdir .Name) }} {{- end }} {{- end }} - var files=JSON.parse({{ jsonify $list }}) + var files={{ $list }} return files } \ No newline at end of file