Skip to content

Commit a588f94

Browse files
remove deprecated getJson
Signed-off-by: saurabhraghuvanshii <saurabhsraghuvanshi@gmail.com>
1 parent 4822c0f commit a588f94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

layouts/partials/feature-info.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{{ $currentPage := .Page.Permalink }}
22
{{ $features := .Site.Data.feature_data }}
33
{{ if not $features }}
4-
{{ $features = getJSON "feature_data.json" }}
4+
{{ with readFile "data/feature_data.json" }}
5+
{{ $features = . | transform.Unmarshal }}
6+
{{ end }}
57
{{ end }}
68

79
{{ $featuresByUrl := dict }}

0 commit comments

Comments
 (0)