diff --git a/internal/reporttemplate/templates/hourly.md.tmpl b/internal/reporttemplate/templates/hourly.md.tmpl index f820937..a083edc 100644 --- a/internal/reporttemplate/templates/hourly.md.tmpl +++ b/internal/reporttemplate/templates/hourly.md.tmpl @@ -18,7 +18,7 @@ Current conditions are unavailable. {{ end }} {{ end }}{{ end }} ## Hourly Forecast -{{ with .Modules.HourlyForecast }}{{ range .Periods }} +{{ with .Modules.HourlyForecast }}{{ range .Periods -}} - **{{ if .HourLabel }}{{ .HourLabel }}{{ else }}{{ .Name }}{{ end }}:**{{ with .TemperatureF }} {{ . }}°F{{ end }}{{ with .TextDescriptionLower }} and {{ . }}{{ else }}{{ with .TextDescription }} and {{ . }}{{ end }}{{ end }}.{{ if .MentionPrecipitation }}{{ with .ProbabilityOfPrecipitationPercent }} Probability of precipitation is {{ . }}%.{{ end }}{{ end }} {{ else }}- No hourly forecast rows are available. {{ end }}{{ else }}- No hourly forecast rows are available.