removed useless "home" site for now
This commit is contained in:
parent
b0f8d81254
commit
620db27468
5
main.go
5
main.go
@ -15,8 +15,9 @@ func main() {
|
||||
http.Handle("/css/", http.StripPrefix("/css/", http.FileServer(http.Dir("css"))))
|
||||
|
||||
// when navigating to /home it should serve the home page
|
||||
http.HandleFunc("/", Home)
|
||||
http.HandleFunc("/rewards", Upload)
|
||||
// http.HandleFunc("/", Home)
|
||||
http.HandleFunc("/", Rewards)
|
||||
http.HandleFunc("/rewards", Rewards)
|
||||
http.ListenAndServe(getPort(), nil)
|
||||
}
|
||||
|
||||
|
@ -19,8 +19,8 @@ type line struct {
|
||||
Reference string
|
||||
}
|
||||
|
||||
// Upload needs a comment
|
||||
func Upload(w http.ResponseWriter, r *http.Request) {
|
||||
// Rewards needs a comment
|
||||
func Rewards(w http.ResponseWriter, r *http.Request) {
|
||||
type data struct {
|
||||
Title string
|
||||
Uploaded bool
|
||||
|
@ -19,7 +19,7 @@
|
||||
<ul>
|
||||
{{ if .Title}}
|
||||
<!-- set current tab active, according to title -->
|
||||
<li><a {{ if (eq .Title "Home") }}class="active"{{end}} href="/">Home</a></li>
|
||||
<!-- <li><a {{ if (eq .Title "Home") }}class="active"{{end}} href="/">Home</a></li> -->
|
||||
<!-- <li><a {{ if (eq .Title "Rewards") }}class="active"{{end}} href="rewards">Monthly Rewards</a></li> -->
|
||||
<!-- <li><a {{ if (eq .Title "Graphs") }}class="active"{{end}} href="graphs">Graphs</a></li> -->
|
||||
<li><a {{ if (eq .Title "Monthly Rewards") }}class="active"{{end}} href="rewards">Monthly Rewards</a></li>
|
||||
|
Loading…
Reference in New Issue
Block a user