added content managment section to readme, changed index page name
This commit is contained in:
parent
4421cccf32
commit
226a2f2fa9
@ -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.
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user