add browse file; move function to utils pkg
This commit is contained in:
14
browse/browse.go
Normal file
14
browse/browse.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package browse
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/hacdias/caddy-hugo/page"
|
||||
)
|
||||
|
||||
// Execute sth
|
||||
func Execute(w http.ResponseWriter, r *http.Request) (int, error) {
|
||||
page := new(page.Page)
|
||||
page.Title = "Browse"
|
||||
return page.Render(w, r, "browse")
|
||||
}
|
||||
Reference in New Issue
Block a user