|
69 | 69 | font-weight: 500; |
70 | 70 | src: local('Roboto MediumItalic'), local('Roboto-MediumItalic'), url('https://cdnjs.cat.net/ajax/libs/mdui/0.2.1/fonts/roboto/Roboto-MediumItalic.woff2') format('woff2'), url('https://cdnjs.cat.net/ajax/libs/mdui/0.2.1/fonts/roboto/Roboto-MediumItalic.woff') format('woff'); |
71 | 71 | } |
72 | | - @font-face { |
73 | | - font-family: 'Material Icons'; |
74 | | - font-style: normal; |
75 | | - font-weight: 400; |
76 | | - src: local('Material Icons'), |
77 | | - local('MaterialIcons-Regular'), |
78 | | - url(https://cdnjs.cat.net/ajax/libs/material-design-icons/3.0.1/iconfont/MaterialIcons-Regular.woff2) format('woff2'), |
79 | | - url(https://cdnjs.cat.net/ajax/libs/material-design-icons/3.0.1/iconfont/MaterialIcons-Regular.woff) format('woff'), |
80 | | - url(https://cdnjs.cat.net/ajax/libs/material-design-icons/3.0.1/iconfont/MaterialIcons-Regular.ttf) format('truetype'); |
81 | | - } |
82 | 72 | </style> |
83 | 73 | <% } %> |
84 | 74 |
|
85 | | -<!-- Import Material Icon --> |
86 | | -<% if(theme.vendors.material_icons) { %> |
87 | | - <link rel="stylesheet" href="<%= theme.vendors.material_icons %>"> |
88 | | -<% } else if(theme.fonts.use === "catnet") { %> |
89 | | -<% } else if(theme.vendors.materialcdn) { %> |
90 | | - <style> |
91 | | - @font-face { |
92 | | - font-family: 'Material Icons'; |
93 | | - font-style: normal; |
94 | | - font-weight: 400; |
95 | | - src: local('Material Icons'), |
96 | | - local('MaterialIcons-Regular'), |
97 | | - url(<%=theme.vendors.materialcdn %>/fonts/MaterialIcons-Regular.woff2) format('woff2'), |
98 | | - url(<%=theme.vendors.materialcdn %>/fonts/MaterialIcons-Regular.woff) format('woff'), |
99 | | - url(<%=theme.vendors.materialcdn %>/fonts/MaterialIcons-Regular.ttf) format('truetype'); |
100 | | - } |
101 | | - </style> |
102 | | -<% } else if(theme.fonts.use === "google") { %> |
103 | | - <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> |
104 | | -<% } else if(theme.fonts.use === "ustc") { %> |
105 | | - <link href="https://fonts.proxy.ustclug.org/icon?family=Material+Icons" rel="stylesheet"> |
| 75 | +<!-- Import Material Icons --> |
| 76 | +
|
| 77 | +<% if(theme.vendors.materialcdn) { %> |
| 78 | + <%- cssLsload({path:(theme.vendors.materialcdn + '/css/material-icons.css'),key:'material_icons'}) %> |
106 | 79 | <% } else { %> |
107 | | - <style> |
108 | | - @font-face { |
109 | | - font-family: 'Material Icons'; |
110 | | - font-style: normal; |
111 | | - font-weight: 400; |
112 | | - src: local('Material Icons'), |
113 | | - local('MaterialIcons-Regular'), |
114 | | - url(<%- url_for('fonts/MaterialIcons-Regular.woff2') %>) format('woff2'), |
115 | | - url(<%- url_for('fonts/MaterialIcons-Regular.woff') %>) format('woff'), |
116 | | - url(<%- url_for('fonts/MaterialIcons-Regular.ttf') %>) format('truetype'); |
117 | | - } |
118 | | - </style> |
| 80 | + <%- cssLsload({path:('css/material-icons.css'),key:'material_icons'}) %> |
119 | 81 | <% } %> |
0 commit comments