diff --git a/admin.go b/admin.go index 227d363..99e1672 100644 --- a/admin.go +++ b/admin.go @@ -317,7 +317,7 @@ func handleViewAdminPage(app *App, u *User, w http.ResponseWriter, r *http.Reque if err != nil { return impart.HTTPError{http.StatusInternalServerError, fmt.Sprintf("Could not get banner: %v", err)} } - p.Content, err = getLandingPage(app) + p.Content, err = getLandingBody(app) p.Content.ID = "landing" } else { p.Content, err = app.db.GetDynamicContent(slug) diff --git a/app.go b/app.go index ad2c451..49580c7 100644 --- a/app.go +++ b/app.go @@ -219,7 +219,7 @@ func handleViewHome(app *App, w http.ResponseWriter, r *http.Request) error { } p.Banner = template.HTML(applyMarkdown([]byte(banner.Content), "")) - content, err := getLandingPage(app) + content, err := getLandingBody(app) if err != nil { log.Error("unable to get landing content: %v", err) return impart.HTTPError{http.StatusInternalServerError, fmt.Sprintf("Could not get content: %v", err)} diff --git a/pages.go b/pages.go index 7ec20df..e10227f 100644 --- a/pages.go +++ b/pages.go @@ -96,7 +96,7 @@ func getLandingBanner(app *App) (*instanceContent, error) { return c, nil } -func getLandingPage(app *App) (*instanceContent, error) { +func getLandingBody(app *App) (*instanceContent, error) { c, err := app.db.GetDynamicContent("landing-body") if err != nil { return nil, err