summaryrefslogtreecommitdiff
path: root/public/views/head.ejs
diff options
context:
space:
mode:
authorWu Cheng-Han2015-09-22 12:06:13 +0800
committerWu Cheng-Han2015-09-22 12:06:13 +0800
commitb6c758f2fc2cb502ed194f2700e033564f2521f4 (patch)
tree35011f183399a28722a0d395b15be4d51562d9de /public/views/head.ejs
parent09a1e662f93456156b8906e6e69f5880678bc0dc (diff)
Added server option "useCdn", use template statement to route resources' source
Diffstat (limited to 'public/views/head.ejs')
-rw-r--r--public/views/head.ejs8
1 files changed, 7 insertions, 1 deletions
diff --git a/public/views/head.ejs b/public/views/head.ejs
index 0518ebc7..816c2a26 100644
--- a/public/views/head.ejs
+++ b/public/views/head.ejs
@@ -7,8 +7,15 @@
<title><%- title %></title>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
+<% if(useCDN) { %>
+<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
+<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
+<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.9.0/bootstrap-social.min.css">
+<% } else { %>
<link rel="stylesheet" href="/vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/vendor/font-awesome/css/font-awesome.min.css">
+<link rel="stylesheet" href="/css/bootstrap-social.css">
+<% } %>
<link rel="stylesheet" href="/vendor/codemirror/lib/codemirror.css">
<link rel="stylesheet" href="/vendor/codemirror/addon/fold/foldgutter.css">
<link rel="stylesheet" href="/vendor/codemirror/addon/dialog/dialog.css">
@@ -20,7 +27,6 @@
<link rel="stylesheet" href="/vendor/highlight-js/github-gist.min.css">
<link rel="stylesheet" href="/vendor/emojify/css/emojify.min.css">
<link rel="stylesheet" href="/vendor/showup/showup.css">
-<link rel="stylesheet" href="/css/bootstrap-social.css">
<link rel="stylesheet" href="/css/markdown.css">
<link rel="stylesheet" href="/css/index.css">
<link rel="stylesheet" href="/css/extra.css">