Back to Glance

Weather

internal/glance/templates/weather.html

0.8.5603 B
Original Source

{{ template "widget-base.html" . }} {{ define "widget-content" }}

{{ .Weather.WeatherCodeAsString }}

Feels like {{ .Weather.ApparentTemperature }}°{{ if eq .Units "metric" }}C{{ else }}F{{ end }}

{{ range $i, $column := .Weather.Columns }} {{ if $column.HasPrecipitation }}

{{ end }} {{ if and (ge $i $.Weather.SunriseColumn) (le $i $.Weather.SunsetColumn ) }}

{{ end }} {{ $column.Temperature | absInt }}

{{ index $.TimeLabels $i }}

{{ end }} {{ if not .HideLocation }}

{{ .Place.Name }},{{ if .ShowAreaName }} {{ .Place.Area }},{{ end }} {{ .Place.Country }}

{{ end }} {{ end }}