From cddf7ed45147869a9d2eee2e40f59a97c472ea72 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sat, 26 Sep 2020 20:59:34 -0400 Subject: Split up http related stuff out of the page library. Make it an interface. Rename page to be 'local' reflecting that it reads the website off the local disk. Update the build script to include the go version. Switch to gorilla/mux Remove the convert command, since we're no longer utilizing that old layout or have any need to convert from it. --- page/pagelist.go | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 page/pagelist.go (limited to 'page/pagelist.go') diff --git a/page/pagelist.go b/page/pagelist.go deleted file mode 100644 index e326ac9..0000000 --- a/page/pagelist.go +++ /dev/null @@ -1,19 +0,0 @@ -package page - -import "sort" - -type PageList []*Page - -func (p PageList) SortDate() PageList { - sort.Slice(p, func(i, j int) bool { - return p[i].Date.Time.After(p[j].Date.Time) - }) - return p -} - -func (p PageList) SortDateReverse() PageList { - sort.Slice(p, func(i, j int) bool { - return p[i].Date.Time.Before(p[j].Date.Time) - }) - return p -} -- cgit v1.2.3