|
|
|
@ -31,6 +31,7 @@ import ( |
|
|
|
|
"github.com/gorilla/sessions" |
|
|
|
|
"github.com/manifoldco/promptui" |
|
|
|
|
"github.com/writeas/go-strip-markdown" |
|
|
|
|
"github.com/writeas/impart" |
|
|
|
|
"github.com/writeas/web-core/auth" |
|
|
|
|
"github.com/writeas/web-core/converter" |
|
|
|
|
"github.com/writeas/web-core/log" |
|
|
|
@ -90,6 +91,10 @@ func handleViewHome(app *App, w http.ResponseWriter, r *http.Request) error { |
|
|
|
|
return handleViewPad(app, w, r) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if land := app.cfg.App.LandingPath(); land != "/" { |
|
|
|
|
return impart.HTTPError{http.StatusFound, land} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
p := struct { |
|
|
|
|
page.StaticPage |
|
|
|
|
Flashes []template.HTML |
|
|
|
|