We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb9b110 commit ee234c9Copy full SHA for ee234c9
layouts/shortcodes/external-json.html
@@ -0,0 +1,4 @@
1
+{{ $raw := resources.GetRemote (.Get 0) }}
2
+{{ $data := transform.Unmarshal $raw.Content }}
3
+{{ $prettyJson := $data | jsonify (dict "prefix" " " "indent" " ") }}
4
+{{ highlight $prettyJson "json" "" }}
0 commit comments