홈 피드와 템플릿 분리

This commit is contained in:
2026-04-07 12:30:20 +09:00
parent 8fc8872114
commit 2c0b5268fa
22 changed files with 652 additions and 229 deletions

View File

@@ -7,6 +7,11 @@ export function homePath(query = '') {
return normalized ? `/?q=${encodeURIComponent(normalized)}` : '/'
}
export function templatesPath(query = '') {
const normalized = String(query || '').trim()
return normalized ? `/templates?q=${encodeURIComponent(normalized)}` : '/templates'
}
export function loginPath(redirect = '') {
const normalized = String(redirect || '').trim()
return normalized ? `/login?redirect=${encodeURIComponent(normalized)}` : '/login'