support concept of default theme
This commit is contained in:
parent
c6f75fbf37
commit
6fa2d35630
3 changed files with 19 additions and 2 deletions
|
@ -25,9 +25,8 @@
|
|||
var match = file.match(/^bundles\/.*?\/theme-(.*)\.css$/);
|
||||
if (match) {
|
||||
var title = match[1].charAt(0).toUpperCase() + match[1].slice(1);
|
||||
var light = match[1] == 'light';
|
||||
%>
|
||||
<link rel="<%= light ? '' : 'alternate ' %>stylesheet" title="<%= title %>"
|
||||
<link rel="alternate stylesheet" title="<%= title %>"
|
||||
href="<%= file %>">
|
||||
<% } else { %>
|
||||
<link rel="stylesheet" href="<%= file %>">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue