pidgin/nest

Add alert feature

2019-12-30, Jason
be2ccb14626b
Add alert feature

The alert shows at the top of the page when present
{{- 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 -}}