{{ $apiUrl := printf "https://api.brandonrozek.com/highfive%s" .RelPermalink }} {{ $initialCount := 0 }} {{ with try (resources.GetRemote $apiUrl) }} {{ with .Err }} {{ warnf "Failed to fetch highfive data from %s" $apiUrl }} {{ else }} {{ $resource := .Value }} {{ $highfiveData := $resource | transform.Unmarshal }} {{ if $highfiveData.count }} {{ $initialCount = $highfiveData.count }} {{ end }} {{ end }} {{ end }}
Give me a high five (it's free): ({{ $initialCount }})