diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-06-21 19:39:47 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-06-21 19:39:47 -0400 |
commit | ba69adcfa787b5aa4946fecff69460f26920451c (patch) | |
tree | 8076f74f27b3cdf9d5b799a67250425055319680 /templates | |
parent | ad35f98adb7135ee0de7399b022c70fcae54fbdc (diff) |
templates/weather.tmpl: update alerts section
Don't render instruction block if `{{ .Instruction }}` is empty.
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 8b27bcf..e8eb99f 100644 --- a/templates/weather.tmpl +++ b/templates/weather.tmpl @@ -75,11 +75,13 @@ <p>{{ $p }}</p> {{ end }} </div> + {{ if len .Instruction | gt 0 }} <div class="instruction"> {{ range $p := .Instruction }} <p>{{ $p }}</p> {{ end }} </div> + {{ end }} </div> </div> {{ end }} |