mirror of https://gitgud.io/fatchan/jschan.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.1 KiB
24 lines
1.1 KiB
meta(charset='utf-8')
|
|
meta(name='viewport' content='width=device-width initial-scale=1')
|
|
- const isBoard = board != null;
|
|
if isBoard
|
|
if board.settings.description
|
|
meta(name='description' content=board.settings.description)
|
|
if board.settings.tags
|
|
meta(name='keywords' content=board.settings.tags.join(','))
|
|
noscript
|
|
style .jsonly { display: none!important; } .user-id { cursor: auto!important; }
|
|
link(rel='stylesheet' href=`/css/style.css?v=${commit}&ct=${captchaType}`)
|
|
- const theme = isBoard ? board.settings.theme : defaultTheme;
|
|
- const codeTheme = isBoard ? board.settings.codeTheme : defaultCodeTheme;
|
|
link#theme(rel='stylesheet' data-theme=theme href=`/css/themes/${theme}.css`)
|
|
if isBoard && board.settings.customCss
|
|
style#board-customcss #{board.settings.customCss}
|
|
link#codetheme(rel='stylesheet' data-theme=codeTheme href=`/css/codethemes/${codeTheme}.css`)
|
|
include ./favicon.pug
|
|
script(src=`/js/all.js?v=${commit}&ct=${captchaType}`)
|
|
|
|
if captchaType === 'google'
|
|
script(src='https://www.google.com/recaptcha/api.js' async defer)
|
|
if captchaType === 'hcaptcha'
|
|
script(src='https://hcaptcha.com/1/api.js' async defer)
|
|
|