diff --git a/views/head.pug b/views/head.pug new file mode 100644 index 0000000..939a205 --- /dev/null +++ b/views/head.pug @@ -0,0 +1,14 @@ +style: include modest.css +style: include dracula.highlight.js.css +script(src='https://cdn.jsdelivr.net/npm/darkreader@4/darkreader.min.js') +script(src='https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.1/build/highlight.min.js') +script. + // Dark mode with Dark Reader + DarkReader.enable({ + brightness: 100, + contrast: 100, + sepia: 0 + }); + + // Highlight code blocks + hljs.highlightAll(); diff --git a/views/index.pug b/views/index.pug index 971c65e..7cf8299 100644 --- a/views/index.pug +++ b/views/index.pug @@ -2,19 +2,6 @@ html head title ass - The superior self-hosted ShareX server meta(name='description' content='ass is a self-hosted ShareX upload server written in Node.js') - style: include modest.css - style: include dracula.highlight.js.css - script(src='https://cdn.jsdelivr.net/npm/darkreader@4/darkreader.min.js') - script(src='https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.1/build/highlight.min.js') - script. - // Dark mode with Dark Reader - DarkReader.enable({ - brightness: 100, - contrast: 100, - sepia: 5 - }); - - // Highlight code blocks - hljs.highlightAll(); + include head include opengraph body!=data \ No newline at end of file