Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Offer instance theme packs in the appearance picker

f7a34d8749054b7ff9e1a304a3fc90ccf3786877 · Keenan Nemetz · 1d ago · parent bc95767f

Offer instance theme packs in the appearance picker

Add profile/themes/index.json and one scoped stylesheet per theme. The loader validates ids and names, pairs each manifest entry with profile/themes/<id>.css, and exposes the list to the account picker and to theme.js before first paint. Theme stylesheets are linked before profile/custom.css, so an instance-wide override still wins.

The starter repository now includes an empty manifest and documents the format in its root README. The configuration docs and the Admin Configuration path table describe the same convention.

server/web/auth.go +7

@@ -449,6 +449,13 @@ func (w *Web) page(r *http.Request, title string) Page {
449 449 if len(snap.Favicon) > 0 {
450 450 p.InstanceFavicon = "/static/custom/profile/favicon.svg?v=" + v
451 451 }
452 for _, t := range snap.Themes {
453 p.InstanceThemes = append(p.InstanceThemes, instanceThemeView{
454 ID: t.ID,
455 Name: t.Name,
456 URL: "/static/custom/themes/" + t.ID + ".css?v=" + v,
457 })
458 }
452 459 }
453 460 }
454 461 if w.Repos != nil {