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/templates/chrome.html +3−2

@@ -3,7 +3,7 @@
3 3 500 renders through. Every page template opens with {{template "header" .}}
4 4 and closes with {{template "footer" .}}. */}}
5 5 {{define "header"}}<!doctype html>
6 <html lang="en" data-theme="everforest-dark-medium" data-font-scale="medium">
6 <html lang="en" data-theme="everforest-dark-medium" data-font-scale="medium"{{if .InstanceThemes}} data-themes="{{range $i, $t := .InstanceThemes}}{{if $i}},{{end}}{{$t.ID}}{{end}}"{{end}}>
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta name="viewport" content="width=device-width,initial-scale=1">
@@ -21,7 +21,8 @@
21 21 <script src="/static/theme.js"></script>
22 22 <link rel="stylesheet" href="/static/vole.css">
23 23 <link rel="stylesheet" href="/static/everforest.css">
24 {{if .InstanceCSS}}<link rel="stylesheet" href="{{.InstanceCSS}}">{{end}}
24 {{range .InstanceThemes}}<link rel="stylesheet" href="{{.URL}}">
25 {{end}}{{if .InstanceCSS}}<link rel="stylesheet" href="{{.InstanceCSS}}">{{end}}
25 26 <script src="/static/htmx.min.js" defer></script>
26 27 <script src="/static/auth.js" defer></script>
27 28 <script src="/static/app.js" defer></script>