summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYukai Huang2016-11-02 11:26:25 +0800
committerYukai Huang2016-11-02 11:26:25 +0800
commit55ddddd84bacfbf8b7693c2a9afbbc7f20b5a7dd (patch)
tree06313fb3646c13c22fe610397a960af6e0ad6456
parent7a052b0dadae051c9ebec50c22d618e17585fa48 (diff)
Require cover stylesheets
-rw-r--r--public/js/cover.js3
-rw-r--r--public/views/index.ejs2
2 files changed, 3 insertions, 2 deletions
diff --git a/public/js/cover.js b/public/js/cover.js
index c02f6c81..6bc55dd9 100644
--- a/public/js/cover.js
+++ b/public/js/cover.js
@@ -1,5 +1,8 @@
require('./locale');
+require('../css/cover.css');
+require('../css/site.css');
+
var common = require('./common');
var checkIfAuth = common.checkIfAuth;
var urlpath = common.urlpath;
diff --git a/public/views/index.ejs b/public/views/index.ejs
index 9b411bb8..1b04886a 100644
--- a/public/views/index.ejs
+++ b/public/views/index.ejs
@@ -30,8 +30,6 @@
<% } %>
<!-- Custom styles for this template -->
<%- include build/cover-header %>
- <link rel="stylesheet" href="<%- url %>/css/cover.css">
- <link rel="stylesheet" href="<%- url %>/css/site.css">
</head>
<body>