feat: SSR 站点单页 /page/:slug 与 Admin CRUD

EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-29 16:49:39 +08:00
parent c4faba81b3
commit 802f86605c
17 changed files with 410 additions and 8 deletions

12
templates/page/view.tmpl Normal file
View File

@@ -0,0 +1,12 @@
{{define "page/view"}}
{{template "base/head" .}}
{{template "base/navbar" .}}
{{if .Flash}}<div class="j13-flash" role="status">{{.Flash}}</div>{{end}}
<main class="j13-main j13-page">
<article class="j13-page__article">
<h1>{{.PageTitle}}</h1>
<div class="j13-page__body post-detail-content">{{.BodyHTML}}</div>
</article>
</main>
{{template "base/footer" .}}
{{end}}