From dd8579fc075c272e5f5590dddd8d1fe4200eca7a Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 26 Oct 2019 12:10:32 +0200 Subject: [PATCH 1/3] first draft --- docs/content/doc/advanced/customizing-gitea.en-us.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/content/doc/advanced/customizing-gitea.en-us.md b/docs/content/doc/advanced/customizing-gitea.en-us.md index 89b4a489cbc10..daaa06fe006f4 100644 --- a/docs/content/doc/advanced/customizing-gitea.en-us.md +++ b/docs/content/doc/advanced/customizing-gitea.en-us.md @@ -72,6 +72,11 @@ matching source. Any statement contained inside `{{` and `}}` are Gitea's template syntax and shouldn't be touched without fully understanding these components. +### Customizing startpage / homepage + +Copy [`home.tmpl`](https://github.com/go-gitea/gitea/blob/master/templates/home.tmpl) from `templates` to `custom/templates`. +Edit as you wish. + ### Adding links and tabs 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 +145,7 @@ To add a custom license, add a file with the license text to `custom/options/lic Locales are managed via our [crowdin](https://crowdin.com/project/gitea). You can override a locale by placing an altered locale file in `custom/options/locale`. 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. - + 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. ``` From 6b844ed73e8544f3bbd3662219cc055874a57d32 Mon Sep 17 00:00:00 2001 From: 6543 <24977596+6543@users.noreply.github.com> Date: Sat, 26 Oct 2019 12:30:15 +0200 Subject: [PATCH 2/3] Update docs/content/doc/advanced/customizing-gitea.en-us.md Co-Authored-By: zeripath --- docs/content/doc/advanced/customizing-gitea.en-us.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/doc/advanced/customizing-gitea.en-us.md b/docs/content/doc/advanced/customizing-gitea.en-us.md index daaa06fe006f4..33e6ea8ee033f 100644 --- a/docs/content/doc/advanced/customizing-gitea.en-us.md +++ b/docs/content/doc/advanced/customizing-gitea.en-us.md @@ -74,7 +74,7 @@ shouldn't be touched without fully understanding these components. ### Customizing startpage / homepage -Copy [`home.tmpl`](https://github.com/go-gitea/gitea/blob/master/templates/home.tmpl) from `templates` to `custom/templates`. +Copy [`home.tmpl`](https://github.com/go-gitea/gitea/blob/master/templates/home.tmpl) for your version of Gitea from `templates` to `custom/templates`. Edit as you wish. ### Adding links and tabs From 591b6e67158681bfe6d281bf031d8f0609fdaed9 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 28 Oct 2019 17:07:22 +0100 Subject: [PATCH 3/3] add notice to restart --- docs/content/doc/advanced/customizing-gitea.en-us.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/content/doc/advanced/customizing-gitea.en-us.md b/docs/content/doc/advanced/customizing-gitea.en-us.md index 33e6ea8ee033f..362f4fb259209 100644 --- a/docs/content/doc/advanced/customizing-gitea.en-us.md +++ b/docs/content/doc/advanced/customizing-gitea.en-us.md @@ -76,6 +76,7 @@ shouldn't be touched without fully understanding these components. Copy [`home.tmpl`](https://github.com/go-gitea/gitea/blob/master/templates/home.tmpl) for your version of Gitea from `templates` to `custom/templates`. Edit as you wish. +Dont forget to restart your gitea to apply the changes. ### Adding links and tabs