summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-08-13 13:07:19 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-08-13 13:07:19 -0400
commit6751d139ff328fb9852b6df5e014c38389803206 (patch)
treedf9a37c6079213f7246ad0b150844334a3f4dca7
parentdad7d63d2fa36bec8f0bfa46febdb0d6faa035e6 (diff)
templates: update weather.tmpl
Show humidity only if it has a non-zero value.
-rw-r--r--templates/weather.tmpl2
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}}&#37;
</div>
</div> <!-- humidity-container end -->
+ {{ end }}
</div> <!-- misc-container end -->