From 0fcd61fc270efb9407a652c89465b84f03245d73 Mon Sep 17 00:00:00 2001 From: Rick Cogley Date: Mon, 22 Jul 2024 14:29:17 +0900 Subject: [PATCH] Test change to resources.GetRemote --- 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 bb43449..607882f 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 := getJSON $urlPre "/secure/api/v2/15331/Web%20Information/API%20List%20All%20EN/select.json" (dict "Authorization" $bearertoken) }} + {{ $newsE := resources.GetRemote $urlPre "/secure/api/v2/15331/Web%20Information/API%20List%20All%20EN/select.json" (dict "Authorization" $bearertoken) }} {{ range first 8 $newsE }} {{ .Date }}