added content managment section to readme, changed index page name

This commit is contained in:
ngn 2023-12-09 21:38:10 +03:00
parent 4421cccf32
commit 226a2f2fa9
2 changed files with 9 additions and 1 deletions

View File

@ -11,3 +11,11 @@ docker run -d --name matterweb \
-v $PWD/content:/app/content \ -v $PWD/content:/app/content \
matterwebsite 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.

View File

@ -6,7 +6,7 @@ import (
) )
func IndexRoute(c *fiber.Ctx) error{ func IndexRoute(c *fiber.Ctx) error{
content, err := GetContent("content", "readme") content, err := GetContent("content", "index")
if err != nil { if err != nil {
log.Error(err) log.Error(err)
return c.Status(505).SendString("Server error") return c.Status(505).SendString("Server error")