{{ with .Site.GetPage "facts" }}

{{ .Title }}

{{ .Content }}

{{ end }}
{{ $url := .Site.Params.factsUrl }} {{ with try (resources.GetRemote $url) }} {{ with .Err }} {{ errorf "%s" . }} {{ else with .Value }} {{ $facts := . | transform.Unmarshal }} {{ if $facts }} {{ range $fact := $facts }} {{ $count := 0 }} {{ if isset $fact "total" }} {{ $count = $fact.total }} {{ else if isset $fact "items" }} {{ $count = len $fact.items }} {{ end }}

{{ index $fact.titles $.Lang }}

{{ end }} {{ else }} {{ errorf "Unable to get remote resource %q" $url }} {{ end }} {{ end }} {{ end }}