docs: fix logout f-string escaping, rebuild

This commit is contained in:
Accusys
2026-05-18 10:00:51 +08:00
parent 2103672684
commit 78ba6f3d3d

View File

@@ -65,7 +65,7 @@ a:hover td {{ background: #f8f8f8; border-radius: 4px; }}
<div class="container">
<div class="topbar">
<h1>{title}</h1>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{{method:'POST'}}).then(()=>window.location.reload());return false">Logout</a>
</div>
<p class="subtitle">{subtitle}</p>
<table>{"".join(links)}</table>
@@ -123,7 +123,7 @@ a {{ color: #0066cc; }}
<div class="container">
<div class="topbar">
<a class="back" href="index.html">&larr; Back to index</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{{method:'POST'}}).then(()=>window.location.reload());return false">Logout</a>
</div>
{content}
</div>