do not bother with favicon stuff for now
parent
7678d529b4
commit
2a4fef7566
7
main.go
7
main.go
|
@ -43,7 +43,6 @@ type User struct {
|
|||
Mtime int64 `json:"mtime"` // Timestamp representing the last time a user's index.html was modified
|
||||
// Town additions
|
||||
DefaultPage bool `json:"default"` // Whether or not user has updated their default index.html
|
||||
Favicon string `json:"favicon"` // URL to a small image representing the user
|
||||
}
|
||||
|
||||
type TildeData struct {
|
||||
|
@ -132,11 +131,6 @@ func detectDefaultPageFor(username string) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
func detectFaviconFor(username string) string {
|
||||
// TODO
|
||||
return "TODO.jpg"
|
||||
}
|
||||
|
||||
func getUsers() (users []User) {
|
||||
// For the purposes of this program, we discover users via:
|
||||
// - presence in /home/
|
||||
|
@ -162,7 +156,6 @@ func getUsers() (users []User) {
|
|||
PageTitle: pageTitleFor(username),
|
||||
Mtime: mtimeFor(username),
|
||||
DefaultPage: detectDefaultPageFor(username),
|
||||
Favicon: detectFaviconFor(username),
|
||||
}
|
||||
users = append(users, user)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue