Gitea: Theme
This repository has been archived on 2023-07-20. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
techknowlogick 61727337c5
All checks were successful
Build and Publish Theme / build-docs (push) Successful in 46s
Remove outdated sponsors from footer
2023-05-12 10:37:43 +08:00
.gitea/workflows Use Gitea Actions to build and publish theme (#123) 2023-03-07 20:06:40 +08:00
.github Replace pull request with issue at issue_template (#28) 2016-12-31 22:43:11 +08:00
archetypes Fixed i18n and disqus 2016-12-12 13:44:42 +01:00
i18n Add Edit on GitHub (#116) 2022-11-30 21:30:57 +08:00
layouts Remove outdated sponsors from footer 2023-05-12 10:37:43 +08:00
src Narrow body with and align gitea icon (#126) 2023-04-29 15:41:20 +08:00
static/images update logo 2023-01-05 21:15:05 -05:00
.editorconfig switch gitter to discord for drone. 2017-06-15 11:14:20 +08:00
.gitignore Update gitignore (#114) 2022-10-03 22:50:50 +08:00
.lgtm update LGTM pattern (#46) 2018-01-03 15:06:56 +02:00 Update contributing & maintainers file 2017-01-24 21:53:03 +01:00
DCO Initial commit 2016-11-10 11:03:23 +01:00
gulpfile.js Use Gitea Actions to build and publish theme (#123) 2023-03-07 20:06:40 +08:00
LICENSE Initial commit 2016-11-10 11:03:23 +01:00
MAINTAINERS Replace @JonasFranzDEV with @jonasfranz (#64) 2019-01-07 05:46:38 -05:00
package-lock.json regenerate package-lock.json (#81) 2019-12-08 00:57:28 +00:00
package.json switch to dart-sass (#80) 2019-12-07 22:10:31 +00:00 Update dev instructions (#98) 2021-09-13 01:08:33 +08:00
theme.toml Fixed i18n and disqus 2016-12-12 13:44:42 +01:00

Gitea: Theme

Build Status Join the chat at

This is a Hugo theme that gets used within all of our websites like our blog, documentation and also the redirects. If you commit any changes to the master branch it will trigger rebuilds of all the related websites.


You need an existing Hugo website, than you can just download our prebuilt theme, put it into your themes/gitea folder and enable the theme with the theme = "gitea" option of your website.


We choose npm to fetch our dependencies and gulp for the pipeline. We won't cover the installation of nodejs or npm, for that you can find enough guides depending on your operating system. First of all you have to install the required dependencies:

npm install

If you want to do theme development we suggest to use the watch task we have defined to get the changes directly built after saving changes to a file:

npm run watch

Whenever you make a change to src/main.scss and save the file, this will trigger a rebuild of static/styles/main.css. To see a preview of your changes on the website, do the following:

  1. Go to
  2. Open the developer tools
  3. Click the "Sources" tab
  4. Open the file
  5. Paste the entire main.css file from your local gitea/theme repo where npm run watch is running on

When you are done with your changes just create a pull request, after merging the pull request the theme will be published to our download page automatically.


Fork -> Patch -> Push -> Pull Request



This project is under the Apache-2.0 License. See the LICENSE file for the full license text.

Copyright (c) 2019 The Gitea Authors <>