feat(anlian-mq): align site with Django anlian browse UX
Port original CSS/JS/assets, rebuild home as four sections with feed fragments, expand schema (boards/notices/rooms/topics), and add page.chrome HTML overrides plus invoke html returns so Marqdo can render Django-class chrome without json glue. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e292c8a7c7
commit
d3b137c919
56 files changed
+6839
-196
No files matched your search
@@ -86,6 +86,21 @@ func SetDetail(page map[string]any, on bool) map[string]any {
|
||||
return out
|
||||
}
|
||||
|
||||
// SetChromeHTML sets raw nav_html / footer_html / body_class overrides.
|
||||
func SetChromeHTML(page map[string]any, navHTML, footerHTML, bodyClass string) map[string]any {
|
||||
out := clone(page)
|
||||
if strings.TrimSpace(navHTML) != "" {
|
||||
out["nav_html"] = navHTML
|
||||
}
|
||||
if strings.TrimSpace(footerHTML) != "" {
|
||||
out["footer_html"] = footerHTML
|
||||
}
|
||||
if strings.TrimSpace(bodyClass) != "" {
|
||||
out["body_class"] = bodyClass
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
func clone(page map[string]any) map[string]any {
|
||||
out := map[string]any{}
|
||||
for k, v := range page {
|
||||
|
||||
Reference in new issue
Block a user