In Hugo, you can assign the contents of a JSON file to a template variable:
{{ $json := getJSON "posts.json" }}
How do you check the length in a condition block?
In Hugo, you can assign the contents of a JSON file to a template variable:
{{ $json := getJSON "posts.json" }}
How do you check the length in a condition block?