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