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

View File

@@ -3,6 +3,7 @@
<p>
{{.SiteName}}
{{if .ShowFriendLinksFooter}} · <a href="/links">友情链接</a>{{end}}
{{range .FooterPages}} · <a href="/page/{{.Slug}}">{{.Title}}</a>{{end}}
</p>
</footer>
<script src="/ssr-assets/site.js" defer></script>

View File

@@ -12,6 +12,7 @@
<a href="/#search">搜索</a>
<a href="/boards">板块</a>
{{if .ShowFriendLinksNav}}<a href="/links">友链</a>{{end}}
{{range .NavPages}}<a href="/page/{{.Slug}}">{{.Title}}</a>{{end}}
{{if .LoggedIn}}
<a href="/compose">发帖</a>
<a href="/messages">私信{{if gt .UnreadCount 0}} <span class="j13-badge">{{.UnreadCount}}</span>{{end}}</a>