Gitea: Theme
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
John Olheiser 5e7d82b6cd
build-docs Details
Use custom URL if author starts with `https://` (#125)
Resolves #124 and would allow for something like `author_domain: github.com` if the author instead has a profile there.

Co-authored-by: jolheiser <john.olheiser@gmail.com>
Reviewed-on: #125
Reviewed-by: delvh <dev.lh@web.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: John Olheiser <john+gitea@jolheiser.com>
Co-committed-by: John Olheiser <john+gitea@jolheiser.com>
2 weeks ago
.gitea/workflows Use Gitea Actions to build and publish theme (#123) 3 weeks ago
.github Replace pull request with issue at issue_template (#28) 6 years ago
archetypes Fixed i18n and disqus 6 years ago
i18n Add `Edit on GitHub` (#116) 4 months ago
layouts Use custom URL if author starts with `https://` (#125) 2 weeks ago
src Allow multiple authors (#120) 2 months ago
static/images update logo 3 months ago
.editorconfig switch gitter to discord for drone. 6 years ago
.gitignore Update gitignore (#114) 6 months ago
.lgtm update LGTM pattern (#46) 5 years ago
CONTRIBUTING.md Update contributing & maintainers file 6 years ago
DCO Initial commit 6 years ago
LICENSE Initial commit 6 years ago
MAINTAINERS Replace @JonasFranzDEV with @jonasfranz (#64) 4 years ago
README.md Update dev instructions (#98) 2 years ago
gulpfile.js Use Gitea Actions to build and publish theme (#123) 3 weeks ago
package-lock.json regenerate package-lock.json (#81) 3 years ago
package.json switch to dart-sass (#80) 3 years ago
theme.toml Fixed i18n and disqus 6 years ago

README.md

Gitea: Theme

Build Status Join the chat at https://img.shields.io/discord/322538954119184384.svg

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.

Install

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.

Development

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 gitea.io
  2. Open the developer tools
  3. Click the "Sources" tab
  4. Open the gitea.io/styles/main.css 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.

Contributing

Fork -> Patch -> Push -> Pull Request

Authors

License

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

Copyright (c) 2019 The Gitea Authors <https://gitea.io>