diff --git a/content/getting-started/wiki.md b/content/getting-started/wiki.md index fec0511..8d3582f 100644 --- a/content/getting-started/wiki.md +++ b/content/getting-started/wiki.md @@ -71,3 +71,22 @@ Now, you can reference the image in Markdown, like this: After saving your changes, the image should be visible. > In contrast to embedding external images, images in Git are only rendered after saving the wiki or markdown file changes. + +## Adding a sidebar and a footer +To enhance the usability of your wiki you can add a custom sidebar and a footer that are shown on every page. The sidebar will be displayed to the right of the main content and the footer below. + +To enable the sidebar, just add a filed named `_Sidebar.md` to your wiki. For a footer the file must be named `_Footer.md`. +Both file types allow common markdown syntax to adjust the presentation to your needs. + +Very basic example for a sidebar: +```markdown +- [[Home]] + +### Content +- [Page 1](Page-1) + +> knuts wiki +``` + +> To edit these special files in the Web UI you need to manually browse to the files, e.g. for our user *knut* and his *foobar* repo: +> `https://codeberg.org/knut/foobar/wiki/_Sidebar`