You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/customizing-gitea.en-us.md
+23-3Lines changed: 23 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -62,12 +62,32 @@ matching source.
62
62
Any statement contained inside `{{` and `}}` are Gitea's templete syntax and
63
63
shouldn't be touched without fully understanding these components.
64
64
65
-
To add custom HTML to the header or the footer of the page, in the `templates/custom`
66
-
directory there is `header.tmpl` and `footer.tmpl` that can be modified. This can be
67
-
a useful place to add custom CSS files or additional Javascript.
65
+
### Adding links and tabs
68
66
69
67
If all you want is to add extra links to the top navigation bar, or extra tabs to the repository view, you can put them in `extra_links.tmpl` and `extra_tabs.tmpl` inside your `custom/templates/custom/` directory.
70
68
69
+
For instance, let's say you are in Germany and must add the famously legally-required "Impressum"/about page, listing who is responsible for the site's content:
70
+
just place it under your "custom/public/" directory (for instance `custom/public/impressum.html`) and put a link to it in `custom/templates/custom/extra_links.tmpl`.
71
+
72
+
To match the current style, the link should have the class name "item", and you can use `{{AppSubUrl}}` to get the base URL:
0 commit comments