doctype html
html
    head
        meta(charset="UTF-8")
        meta(name="viewport", content="width=device-width, initial-scale=1.0")
        block meta
        - const title = t ? `${t} | Misskey Tools`: "Misskey Tools";
        - const desc = d || "🌠 연합우주의 모든 Misskey/CherryPick 사용자를 위한 다양한 도구 모음집 🚀";
        title= title
        meta(name="description" content=desc)
        meta(property="og:title" content=title)
        meta(property="og:site_name" content="Misskey Tools")
        meta(property="og:description" content=desc)
        meta(property="og:type" content="website")
        meta(property="og:image" content="/assets/misskey.png")
        link(rel="icon", href="/assets/misskey.png", type="image/png")
        link(rel="preload", href="/assets/otadesign_rounded.woff")
        link(rel="preload", href="/assets/otadesign_rounded.woff2")
        link(rel="preload", href="/assets/PretendardJPVariable.woff2")
        script(src="https://kit.fontawesome.com/a4464bc6cd.js" crossorigin="anonymous")
        link(rel="stylesheet", href="/assets/style.css")
        link(rel="me", href="https://pla.is/@st")
    body
        #app: .loading 잠시만 기다려주세요...

        if token
            script.
                const token = '#{token}';
                const previousToken = localStorage.getItem('token');
                const accounts = JSON.parse(localStorage.getItem('accounts') || '[]');
                if (previousToken && !accounts.includes(previousToken)) {
                    accounts.push(previousToken);
                }
                localStorage.setItem('accounts', JSON.stringify(accounts));
                localStorage.setItem('token', token);
                history.replaceState(null, null, '/');

        if error
            script.
                window.__misshaialert = { error: '#{error}' };

        script(src=`/assets/fe.${version}.js` async defer)
