Browse Source

Cleanup calendar whitespace

single-block-api
Peter Stuifzand 11 months ago
parent
commit
4927242b52
  1. 1
      main.go
  2. 18
      templates/calendar.html

1
main.go

@ -1223,6 +1223,7 @@ func main() { @@ -1223,6 +1223,7 @@ func main() {
return
}
})
http.Handle("/search/", sh)
http.Handle("/public/", http.StripPrefix("/public/", http.FileServer(http.Dir("./dist"))))
http.Handle("/save/", &saveHandler{})

18
templates/calendar.html

@ -6,22 +6,8 @@ @@ -6,22 +6,8 @@
<a href="" class="calendar-update" data-calendar="{{ .NextMonth }}">&gt;</a>
</div>
<div class="calendar-grid">
<div class="day"></div>
<div class="day">m</div>
<div class="day">d</div>
<div class="day">w</div>
<div class="day">d</div>
<div class="day">v</div>
<div class="day">z</div>
<div class="day">z</div>
{{ range .Days }}
<div class="{{ .Class }}">
<a href="{{ .URL }}">
<span class="day-text">{{ .Text }}</span>
<span class="day-count">{{ .Count }}</span>
</a>
</div>
{{ end }}
<div class="day"></div><div class="day">m</div><div class="day">d</div><div class="day">w</div><div class="day">d</div><div class="day">v</div><div class="day">z</div><div class="day">z</div>
{{ range .Days -}}<div class="{{ .Class }}"><a href="{{ .URL }}"><span class="day-text">{{ .Text }}</span></a></div>{{ end }}
</div>
</div>
{{ end }}

Loading…
Cancel
Save