summaryrefslogtreecommitdiff
path: root/template.html
diff options
context:
space:
mode:
Diffstat (limited to 'template.html')
-rw-r--r--template.html16
1 files changed, 9 insertions, 7 deletions
diff --git a/template.html b/template.html
index e23a7f3..2e502d3 100644
--- a/template.html
+++ b/template.html
@@ -67,13 +67,15 @@
<a href="{{ .Weather.URL }}"><img src="{{ .Weather.Icon }}" alt="" /></a>
<span id="temp">{{ .Weather.Temp.Value }}°</span>
</div>
- <div id="links">
- <ul>
- {{ range .Links }}
- <li><a href="{{ .URL }}">{{ .Title }}</a></li>
- {{ end }}
- </ul>
- </div>
+ {{ if .Links }}
+ <div id="links">
+ <ul>
+ {{ range .Links }}
+ <li><a href="{{ .URL }}">{{ .Title }}</a></li>
+ {{ end }}
+ </ul>
+ </div>
+ {{ end }}
<span id="earthporninfo">
<a href="http://reddit.com{{ .Porn.Permalink }}">{{ .Porn.Title }}</a>
|