{{ $software := .File.BaseFileName }}
{{ with resources.GetRemote .Params.feed_url | transform.Unmarshal }}
    {{ range first 1 (sort (where .Contents ".Key" "!=" ".foo") "LastModified" "asc") }}
        <div class="row software-header">
        <div class="col-md-2 text-xs-center software-header"><img src="/icons/{{ $.Params.head_icon }}" class="main-software-icon"></div>
          <div class="col-md-8">
            <h1 class="text-md-left" align="center">{{ $.Name }}</h1>
            <p>{{ $.Description }}</p>
            {{ with $.Params.donate }}<a role="button" class="btn btn-info btn-sm" href="{{ . }}">Donate</a>{{ end }}
          </div>
          <div class="col-md-2 text-xs-center">
            <a class="btn btn-success btn-sm" href="{{$.Params.feed_url}}/{{ .Key }}">Download</a>
            <div class="upper-right-version">{{ partial "latest-version" $software }}</div>
            <span class="label label-default version-label">{{ if (lt now ((.LastModified|time.AsTime).AddDate 0 0 14)) }}New{{ end }}</span><br>
          </div>
        </div>
    {{ end }}
{{ end }}
