65 lines
1.7 KiB
Text
65 lines
1.7 KiB
Text
block vars
|
|
|
|
doctype html
|
|
|
|
!= '\n<!-- Thank you for using Misskey! @syuilo -->\n'
|
|
|
|
html
|
|
|
|
head
|
|
meta(charset='utf-8')
|
|
meta(name='application-name' content='Misskey')
|
|
meta(name='referrer' content='origin')
|
|
meta(name='theme-color' content='#86b300')
|
|
meta(property='og:site_name' content= instanceName || 'Misskey')
|
|
meta(name='viewport' content='width=device-width, initial-scale=1')
|
|
link(rel='icon' href= icon || '/favicon.ico')
|
|
link(rel='apple-touch-icon' href= icon || '/apple-touch-icon.png')
|
|
link(rel='manifest' href='/manifest.json')
|
|
|
|
title
|
|
block title
|
|
= title || 'Misskey'
|
|
|
|
block desc
|
|
meta(name='description' content= desc || '✨🌎✨ A federated blogging platform ✨🚀✨')
|
|
|
|
block meta
|
|
|
|
block og
|
|
meta(property='og:image' content=img)
|
|
|
|
style
|
|
include ./../../../../built/client/assets/style.css
|
|
script(src=`/assets/app.${version}.js` async defer)
|
|
script.
|
|
const theme = localStorage.getItem('theme');
|
|
if (theme) {
|
|
for (const [k, v] of Object.entries(JSON.parse(theme))) {
|
|
document.documentElement.style.setProperty(`--${k}`, v.toString());
|
|
if (k === 'accent') {
|
|
for (const tag of document.head.children) {
|
|
if (tag.tagName === 'META' && tag.getAttribute('name') === 'theme-color') {
|
|
tag.setAttribute('content', v);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
const fontSize = localStorage.getItem('fontSize');
|
|
if (fontSize) {
|
|
document.documentElement.classList.add('f-' + fontSize);
|
|
}
|
|
|
|
body
|
|
noscript: p
|
|
| JavaScriptを有効にしてください
|
|
br
|
|
| Please turn on your JavaScript
|
|
div#ini.
|
|
<svg viewBox="0 0 50 50">
|
|
<path d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z" />
|
|
</svg>
|
|
block content
|