- Fix admin login: ID mismatch (loginUser->loginUsername, loginPass->loginPassword) - Fix auth URL: /api/auth -> /api/auth/login - Fix init() structure: broken if/else for checkAuth - Remove onclick from login button (JS handles via addEventListener) - Clean URLs: /blog/post/slug instead of post.html?slug=slug - Updated blog.js, post.js, main.js with clean URL links - post.js supports both /blog/post/slug and ?slug=x formats - nginx configured for /blog/post/* rewrite |
||
|---|---|---|
| .. | ||
| admin.js | ||
| blog.js | ||
| main.js | ||
| post.js | ||