Skip to content

Commit fd40c9d

Browse files
6543techknowlogick
authored andcommitted
[Docs] add explicit info about customization of homepage (#8694)
* first draft * Update docs/content/doc/advanced/customizing-gitea.en-us.md Co-Authored-By: zeripath <[email protected]> * add notice to restart
1 parent 5e6a008 commit fd40c9d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/content/doc/advanced/customizing-gitea.en-us.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ matching source.
7272
Any statement contained inside `{{` and `}}` are Gitea's template syntax and
7373
shouldn't be touched without fully understanding these components.
7474

75+
### Customizing startpage / homepage
76+
77+
Copy [`home.tmpl`](https://github.com/go-gitea/gitea/blob/master/templates/home.tmpl) for your version of Gitea from `templates` to `custom/templates`.
78+
Edit as you wish.
79+
Dont forget to restart your gitea to apply the changes.
80+
7581
### Adding links and tabs
7682

7783
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.
@@ -140,7 +146,7 @@ To add a custom license, add a file with the license text to `custom/options/lic
140146
Locales are managed via our [crowdin](https://crowdin.com/project/gitea).
141147
You can override a locale by placing an altered locale file in `custom/options/locale`.
142148
Gitea's default locale files can be found in the [`options/locale`](https://github.com/go-gitea/gitea/tree/master/options/locale) source folder and these should be used as examples for your changes.
143-
149+
144150
To add a completely new locale, as well as placing the file in the above location, you will need to add the new lang and name to the `[i18n]` section in your `app.ini`. Keep in mind that Gitea will use those settings as **overrides**, so if you want to keep the other languages as well you will need to copy/paste the default values and add your own to them.
145151

146152
```

0 commit comments

Comments
 (0)