Location of gitea HTML page source and other site assets

I am running Gitea on my server (without customisations). When I open the home page from a browser, it all works fine. However, if I curl https://gitea.mydomain.tld, I can see various javascripts, css files and image files are referenced in the HTML. If I wget https://gitea.mydomain.tld then index.html is successfuly downloaded. But on my server, I cannot find any of the site assets mentioned - no index.html, none of the .png image files, none of the .css files and no .js files. Is gitea pulling these from some remote location when I open the URL? If not, where are all these files located?

They’re embedded inside Gitea’s binary.

Aha! Thanks for your very quick response. That’s an interesting approach. I will explore a few customisations now and see how I get along. Thanks again.

To customize a resource, you place your version inside the custom directory. You can get a copy of the file you want customized from our sources, but make sure to navigate to the appropriate version in the repository. For example, to get the template for the home page for Gitea 1.10.3, you need to grab it from:

And place it at custom/templates/home.tmpl

1 Like

I’ve tried for hours and can’t figure out how to do this on 1.11.4

this is my folder structure and it’s off the main directory with data, logs, etc directories:

custom
└── templates
    └── base
        └── head_navbar.tmpl

I got the head_navbar.tmpl file directly from github using the tags for that release

i’m trying to remove the gitea icon and ‘help’ navbar items.

Is there a app.ini setting I need to change/add?

Sorry about the stupid question but… did you remember to restart Gitea after the changes?

Otherwise, make sure the custom folder is located where Gitea expects it to be. Go to your “site administration” page, the “configuration” tab, and look for Custom File Root Path.