aemet/cmd/templates/index.html

33 lines
539 B
HTML
Raw Normal View History

2024-05-27 08:28:10 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>AEMET Client</title>
2024-05-27 08:28:10 +02:00
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="style.css" rel="stylesheet">
</head>
<body>
<p>Localidad: {{ .Base.Nombre }}</p>
{{ range .Base.Prediccion.Dia}}
<hr>
<p>Dia: {{ .Fecha }}</p>
<p>
Índice ultravioleta:
{{ if eq .UV ""}}
No disponible!
{{ else }}
{{ .UV }}
{{ end }}
</p>
<!-- <p>Índice ultravioleta: {{ .UV }}</p> -->
{{ end }}
2024-05-27 08:28:10 +02:00
</body>
</html>