Replies: 2 comments 2 replies
-
Depending on which exact version you're running, most likely all default template files and static files are embedded into the binary so you won't find them on disk. If you enable the trace level, Gogs tells you where the "custom" directory it is using: [log]
LEVEL = Trace e.g.
Then just put "templates" directory under there. Source files of template files are in https://github.com/gogs/gogs/tree/main/templates and static files are in https://github.com/gogs/gogs/tree/main/public Let me know if you have other questions! |
Beta Was this translation helpful? Give feedback.
-
Thanks @unknwon . This looks awkward:
I don't see a setting in |
Beta Was this translation helpful? Give feedback.
-
Hi,
I installed Gogs from an Archlinux package: https://aur.archlinux.org/packages/gogs and now I'd like to customize its default theme and logo.
The templating documentation specifies the
templates/
andcustom/templates/
directories as the locations to look for, but I cannot find those in the list of files provided by the Archlinux package. Furthermore, I cannot find any of the CSS and image assets that are served by the Gogs web server in the package files.Is it possible to modify a template in this kind of setup? Or do I need to work off the source code and deploy the application myself?
Note: I have no knowledge of how Go source code and assets are compiled and packaged, so consider this a "non-Go dev" use-case... If it's an Arch packaging issue, let me know and I will post my question in the appropriate forum. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions