diff options
author | Kevin Chabowski <kevin@kch42.de> | 2014-05-01 14:24:44 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2014-05-01 14:33:15 +0200 |
commit | 901d29509eb759426671ca2766c98c657eb46cd6 (patch) | |
tree | a7bc828500a8c66205fc55e21a5ab66860e871bd /main.go | |
parent | 500af457c12a8c11c4b32301f6ab324248c4ccaa (diff) | |
download | startpage-901d29509eb759426671ca2766c98c657eb46cd6.tar.gz startpage-901d29509eb759426671ca2766c98c657eb46cd6.tar.bz2 startpage-901d29509eb759426671ca2766c98c657eb46cd6.zip |
No more flexible columns, 2 columns look best (IMHO).
Also some CSS cleanup
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -135,19 +135,11 @@ type TplData struct { Porn *EarthPorn Weather *Weather Links []Link - LCols int } func startpage(rw http.ResponseWriter, req *http.Request) { - links := GetLinks() - lcols := len(links) / 3 - if lcols < 1 { - lcols = 1 - } else if lcols > 4 { - lcols = 4 - } - if err := tpl.Execute(rw, &TplData{&porn, &weather, links, lcols}); err != nil { + if err := tpl.Execute(rw, &TplData{&porn, &weather, links}); err != nil { log.Printf("Failed executing template: %s\n", err) } } |