From 226a2f2fa9f304756bf0f5830e66f90549cee511 Mon Sep 17 00:00:00 2001 From: ngn Date: Sat, 9 Dec 2023 21:38:10 +0300 Subject: [PATCH] added content managment section to readme, changed index page name --- README.md | 8 ++++++++ routes/index.go | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 295f2af..994cfa9 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,11 @@ docker run -d --name matterweb \ -v $PWD/content:/app/content \ matterwebsite ``` + +### Managing Content +Website content can be managed by editing JSON and markdown files +under the `content` direcotry. + +Matterlinux's website content directory can be found at +[website-content](https://git.matterlinux.xyz/matterlinux/website-content) +repository. diff --git a/routes/index.go b/routes/index.go index da34da7..35ca16c 100644 --- a/routes/index.go +++ b/routes/index.go @@ -6,7 +6,7 @@ import ( ) func IndexRoute(c *fiber.Ctx) error{ - content, err := GetContent("content", "readme") + content, err := GetContent("content", "index") if err != nil { log.Error(err) return c.Status(505).SendString("Server error")