Serve planet and mascots from src/assets
- Move served planet (animated webp, posters, 300 frames) and team mascots into src/assets/ - Use relative paths (assets/...) that work in file://, on the dev server and with docroot=src - Screenshot pipeline writes to src/assets/projects - Halo audit: report and measurements, ticker ring fix, shadow rules in DESIGN.md and spec.md
This commit is contained in:
1 parent
b60d00d55c
commit
9e7b1e3430
476 files changed
+27742
-69
No files matched your search
@@ -94,8 +94,8 @@ function toList(v) {
|
||||
return t.includes(',') ? t.split(',').map((s) => s.trim()).filter(Boolean) : [t];
|
||||
}
|
||||
|
||||
// Пути в .md заданы от корня сайта (/Work_files/…) — в разметке используются как есть.
|
||||
// ⚠️ Деплой: содержимое src/ кладётся в docroot, Work_files/ и api/ — рядом с ним.
|
||||
// Пути в .md относительны docroot (assets/…) — работают в file://, на dev-server и на хостинге.
|
||||
// Отдаваемые ассеты лежат внутри src/assets/, сырьё — в Work_files/.
|
||||
function sitePath(p) {
|
||||
return String(p == null ? '' : p).trim();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user