pidgin/nest

Merged in default (pull request #91)

2020-04-18, Gary Kramlich
4001a8922417
Merged in default (pull request #91)

Initialize search fields from URL correctly.

Approved-by: Gary Kramlich
Approved-by: John Bailey
{{- if .IsNamedParams -}}
{{- $scheme := or (.Get "scheme") "https" -}}
{{- $repo := .Get "name" -}}
{{- if eq (.Get "link") "1" -}}<a href="{{print $scheme "://" (index .Site.Data.repos $repo) }}">{{- end -}}
{{- if eq (.Get "short") "1" -}}{{- .Get "name" -}}{{- else -}}{{- index .Site.Data.repos $repo -}}{{- end -}}
{{- if eq (.Get "link") "1" -}}</a>{{- end -}}
{{- else -}}
{{- index .Site.Data.repos (.Get 0) -}}
{{- end -}}