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/instance_assets.go +8

@@ -48,6 +48,14 @@ func (w *Web) serveInstanceAsset(rw http.ResponseWriter, r *http.Request) bool {
48 48 body = snap.CSS
49 49 case rel == "profile/favicon.svg":
50 50 body = snap.Favicon
51 case strings.HasPrefix(rel, "themes/") && strings.HasSuffix(rel, ".css"):
52 id := strings.TrimSuffix(strings.TrimPrefix(rel, "themes/"), ".css")
53 for _, t := range snap.Themes {
54 if t.ID == id {
55 body = t.CSS
56 break
57 }
58 }
51 59 case strings.HasPrefix(rel, "assets/"):
52 60 if a, ok := snap.Assets[strings.TrimPrefix(rel, "assets/")]; ok {
53 61 body = a.Body