From c3f3eb0a65e7302070a1c5a6e9b559996e8d6f83 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Thu, 27 Jun 2019 22:22:21 -0400 Subject: [PATCH] Rename getLandingPage -> getLandingBody This makes the naming scheme more consistent with other funcs. Ref T565 --- admin.go | 2 +- app.go | 2 +- pages.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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