Skip to content

Commit c269162

Browse files
Merge pull request #913 from saurabhraghuvanshii/build
remove deprecated getJson
2 parents 4822c0f + a588f94 commit c269162

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)