- Login to server
- Change user to βgitβ
sudo su git
- Change directory to Gitea.
cd /home/git/gitea/custom
- Make directory for change.
mkdir options && cd options
- Make directory for languages.
mkdir locale && cd locale
- Create language file.
nano locale_en-US.ini
- Copy everything from the template source from Gitea.
- Change any lines that you want changed.
- Exit as git user.
exit
- Restart Gitea service.
sudo systemctl restart gitea
β Edit Home Page
Navigate as git user to /home/git/gitea/custom
- Make a directory for the templates.
mkdir templates && cd templates
- Create template file & copy in source.
nano home.tmpl
- Restart Gitea service after making changes.
sudo systemctl restart gitea
β Change Landing Page
Navigate as git user to /home/git/gitea/custom/conf
Edit app.ini
sudo nano app.ini
# add section:
[server]
LANDING_PAGE = explore
β Restart Gitea After Changes
The Gitea service must be restarted for any changed to take affect.
sudo systemctl restart gitea
or
sudo systemctl stop gitea
sudo systemctl start gitea