{{/* Get metrics timestamp from first available repo */}} {{ $timestamp := "" }} {{ $reposIndex := site.Data.repos }} {{ if and $reposIndex $reposIndex.repositories }} {{ range $repoConfig := $reposIndex.repositories }} {{ if not $timestamp }} {{ with index site.Data.repos $repoConfig.owner }} {{ with index . $repoConfig.repo }} {{ with .metrics }} {{ $timestamp = .timestamp }} {{ end }} {{ end }} {{ end }} {{ end }} {{ end }} {{ end }} {{ if not $timestamp }} {{ with site.Data.metrics }} {{ $timestamp = .timestamp }} {{ end }} {{ end }} VISR (built by Den Delimarsky) {{ if $timestamp }} Data updated {{ $timestamp | time.Format "Jan 2, 2006 at 3:04 PM" }} UTC {{ end }} {{ with .GitInfo }} {{ .AbbreviatedHash }} {{ end }}