Weather and Category
This commit is contained in:
13
web/data/weatherwidget.html
Normal file
13
web/data/weatherwidget.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{define "weatherwidgetHTML"}}
|
||||
<a class="w-link" href="/weather">
|
||||
<div id="weather">
|
||||
{{range .weatherInfo}}
|
||||
<div class="weather-widget">
|
||||
<div><span id="city">{{.Name}}</span></div>
|
||||
<div id="temperature">{{.Main.Temp}} °C</div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
</a>
|
||||
<br>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user