diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-08-13 13:07:19 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-08-13 13:07:19 -0400 |
commit | 6751d139ff328fb9852b6df5e014c38389803206 (patch) | |
tree | df9a37c6079213f7246ad0b150844334a3f4dca7 /templates | |
parent | dad7d63d2fa36bec8f0bfa46febdb0d6faa035e6 (diff) |
templates: update weather.tmpl
Show humidity only if it has a non-zero value.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/weather.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/weather.tmpl b/templates/weather.tmpl index 9ba41a0..8a7a6a2 100644 --- a/templates/weather.tmpl +++ b/templates/weather.tmpl @@ -36,6 +36,7 @@ </div> </div> <!-- wind-container end --> + {{ if gt .Now.Humidity 0 }} <div class="humidity-container"> <div class="prop"> Humidity @@ -44,6 +45,7 @@ {{.Now.Humidity}}% </div> </div> <!-- humidity-container end --> + {{ end }} </div> <!-- misc-container end --> |