From 7a052b0dadae051c9ebec50c22d618e17585fa48 Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Wed, 2 Nov 2016 11:26:06 +0800 Subject: Require index stylesheets --- public/js/index.js | 7 ++++++- public/views/head.ejs | 6 ++---- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'public') diff --git a/public/js/index.js b/public/js/index.js index 8080b9c7..183a81c8 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1,6 +1,11 @@ /* jquery and jquery plugins */ require('../vendor/showup/showup'); +require('../css/index.css'); +require('../css/extra.css'); +require('../css/slide-preview.css'); +require('../css/site.css'); + var toMarkdown = require('to-markdown'); var saveAs = require('file-saver').saveAs; @@ -2306,7 +2311,7 @@ socket.on('delete', function () { saveHistory(newnotehistory); location.href = serverurl; }); - } + } }); var retryTimer = null; socket.on('maintenance', function () { diff --git a/public/views/head.ejs b/public/views/head.ejs index 00571186..77cc1cf0 100644 --- a/public/views/head.ejs +++ b/public/views/head.ejs @@ -35,11 +35,9 @@ + <%- include build/index-header %> - - - - + <%- include build/cover-header %> - -
-- cgit v1.2.3 From 58fedb01faf8175d8454ff7edcb531cf36cef5c4 Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Wed, 2 Nov 2016 11:55:08 +0800 Subject: Require pretty stylesheets --- public/js/pretty.js | 4 ++++ public/views/pretty.ejs | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'public') diff --git a/public/js/pretty.js b/public/js/pretty.js index 59403586..f7d31902 100644 --- a/public/js/pretty.js +++ b/public/js/pretty.js @@ -1,3 +1,7 @@ +require('../css/extra.css'); +require('../css/slide-preview.css'); +require('../css/site.css'); + /* other vendors plugin */ var S = require('string'); diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index d03be9c4..c70553be 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -32,9 +32,6 @@ <%- include build/pretty-header %> - - -