MCPcopy Index your code
hub / github.com/writefreely/writefreely / getLandingBody

Function getLandingBody

pages.go:133–147  ·  view source on GitHub ↗
(app *App)

Source from the content-addressed store, hash-verified

131}
132
133func getLandingBody(app *App) (*instanceContent, error) {
134 c, err := app.db.GetDynamicContent("landing-body")
135 if err != nil {
136 return nil, err
137 }
138 if c == nil {
139 c = &instanceContent{
140 ID: "landing-body",
141 Type: "section",
142 Content: defaultLandingBody(app.cfg),
143 Updated: defaultPageUpdatedTime,
144 }
145 }
146 return c, nil
147}
148
149func defaultLandingBanner(cfg *config.Config) string {
150 if cfg.App.Federation {

Callers 2

handleViewAdminPageFunction · 0.85
handleViewLandingFunction · 0.85

Calls 2

defaultLandingBodyFunction · 0.85
GetDynamicContentMethod · 0.65

Tested by

no test coverage detected