From 0ddd56cdcf4f6cc5fec6a6f5dcb631064f46e655 Mon Sep 17 00:00:00 2001 From: Rick Cogley Date: Mon, 22 Jul 2024 14:42:58 +0900 Subject: [PATCH] add transform unmarshal --- layouts/_default/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/home.html b/layouts/_default/home.html index ed1e5cc..2916b5c 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -170,7 +170,7 @@

{{ $token := getenv "PRODBTOKEN15331" }} {{ $bearertoken := printf "Bearer %s" $token }} {{ $urlPre := "https://pro.dbflex.net" }} - {{ $newsE := resources.GetRemote "https://pro.dbflex.net/secure/api/v2/15331/Web%20Information/API%20List%20All%20EN/select.json" (dict "Authorization" $bearertoken) }} + {{ $newsE := resources.GetRemote "https://pro.dbflex.net/secure/api/v2/15331/Web%20Information/API%20List%20All%20EN/select.json" (dict "Authorization" $bearertoken) | transform.Unmarshal }} {{ range first 8 $newsE }} {{ .Date }}