iceshrimp/src/server/web/views/base.pug

75 lines
2.2 KiB
Plaintext
Raw Normal View History

block vars
2016-12-29 07:49:51 +09:00
doctype html
2017-03-22 16:19:32 +09:00
!= '\n<!-- Thank you for using Misskey! @syuilo -->\n'
2016-12-29 07:49:51 +09:00
2017-03-26 22:03:56 +09:00
html
2016-12-29 07:49:51 +09:00
head
meta(charset='utf-8')
2019-04-15 21:17:52 +09:00
meta(name='application-name' content='Misskey')
2017-03-18 00:02:41 +09:00
meta(name='referrer' content='origin')
meta(name='theme-color' content='#86b300')
2019-04-29 18:15:12 +09:00
meta(property='og:site_name' content= instanceName || 'Misskey')
meta(name='viewport' content='width=device-width, initial-scale=1')
2020-02-14 23:55:31 +09:00
link(rel='icon' href= icon || '/favicon.ico')
link(rel='apple-touch-icon' href= icon || '/apple-touch-icon.png')
2017-11-18 22:39:09 +09:00
link(rel='manifest' href='/manifest.json')
link(rel='prefetch' href='https://xn--931a.moe/assets/info.jpg')
link(rel='prefetch' href='https://xn--931a.moe/assets/not-found.jpg')
link(rel='prefetch' href='https://xn--931a.moe/assets/error.jpg')
2017-05-18 05:06:55 +09:00
title
block title
2019-03-14 16:30:51 +09:00
= title || 'Misskey'
block desc
2019-03-14 16:30:51 +09:00
meta(name='description' content= desc || '✨🌎✨ A federated blogging platform ✨🚀✨')
block meta
2017-05-18 05:06:55 +09:00
block og
meta(property='og:image' content=img)
2016-12-29 07:49:51 +09:00
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());
2020-02-17 06:37:39 +09:00
if (k === 'html') {
for (const tag of document.head.children) {
if (tag.tagName === 'META' && tag.getAttribute('name') === 'theme-color') {
tag.setAttribute('content', v);
break;
}
}
}
}
}
2016-12-29 07:49:51 +09:00
2020-02-15 03:44:40 +09:00
const fontSize = localStorage.getItem('fontSize');
if (fontSize) {
document.documentElement.classList.add('f-' + fontSize);
}
2020-02-15 08:29:59 +09:00
const wallpaper = localStorage.getItem('wallpaper');
if (wallpaper) {
document.documentElement.style.backgroundImage = `url(${wallpaper})`;
}
2020-07-12 18:19:02 +09:00
//- https://qiita.com/junya/items/3ff380878f26ca447f85
body(ontouchstart='')
2017-03-26 06:58:29 +09:00
noscript: p
| JavaScriptを有効にしてください
br
2017-12-07 23:48:46 +09:00
| Please turn on your JavaScript
2018-06-09 10:06:27 +09:00
div#ini.
<svg viewBox="0 0 50 50">
2020-02-10 21:16:04 +09:00
<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" />
2018-06-09 10:06:27 +09:00
</svg>
block content