diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-06-03 20:33:13 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-06-03 20:33:13 -0400 |
commit | 6f0d4028cb9944e6c28e7659528847aee551f2bb (patch) | |
tree | a7c706ee48f1bfafc646c357c639d2a94aa13a63 /templates | |
parent | cc9452bac132d58ca73fe4317f37f6fd7afe6153 (diff) |
templates/weather.tmpl: add bidaily forecast
Diffstat (limited to 'templates')
-rw-r--r-- | templates/weather.tmpl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/weather.tmpl b/templates/weather.tmpl index 60257fa..d23bc99 100644 --- a/templates/weather.tmpl +++ b/templates/weather.tmpl @@ -61,6 +61,27 @@ </div> {{ end }} + + {{ if .BiDailyTimeline }} + <div class="bd-timeline-container"> + <div class="periods-container"> + {{ range .BiDailyTimeline.Periods }} + <div class="period"> + <div class="name"> + {{ .Name }} + </div> + <div class="temperature"> + {{.Temperature}}{{.TemperatureUnit}} + </div> + <div class="forecast"> + {{ .Forecast }} + </div> + </div> + {{ end }} + </div> + </div> + {{ end }} + <div class="search-link-container"> <a href="/search"> ➤ |