|
32 | 32 | <%= config.title %> |
33 | 33 | </title> |
34 | 34 |
|
35 | | - <!-- Favicons --> |
36 | | - <link rel="icon shortcut" type="image/ico" href="<%= theme.head.favicon %>"> |
37 | | - <link rel="icon" sizes="192x192" href="<%= theme.head.high_res_favicon %>"> |
38 | | - <link rel="apple-touch-icon" href="<%= theme.head.apple_touch_icon %>"> |
39 | | - |
40 | 35 | <!-- Meta & Info --> |
41 | 36 | <meta charset="utf-8"> |
| 37 | + |
| 38 | + <!-- dns prefetch --> |
| 39 | + <meta http-equiv="x-dns-prefetch-control" content="on"> |
| 40 | + <% if(theme.materialcdn.use === true) { %> |
| 41 | + <link rel="dns-prefetch" href="<%= theme.materialcdn.base %>"/> |
| 42 | + <%}%> |
| 43 | + <% if(theme.leancloud.enable === true) { %> |
| 44 | + <link rel="dns-prefetch" href="<%= theme.leancloud.av_core_mini %>"/> |
| 45 | + <% } %> |
| 46 | + <% if(theme.comment.use == "changyan"){ %> |
| 47 | + <link rel="dns-prefetch" href="https://changyan.sohu.com"/> |
| 48 | + <% } %> |
| 49 | + <% if(theme.analytics.baidu_id) { %> |
| 50 | + <link rel="dns-prefetch" href="https://hm.baidu.com"/> |
| 51 | + <% } %> |
| 52 | + <% if(theme.analytics.google_id) { %> |
| 53 | + <link rel="dns-prefetch" href="https://www.google-analytics.com"/> |
| 54 | + <% } %> |
| 55 | + <% if(theme.busuanzi.enable === true) { %> |
| 56 | + <link rel="dns-prefetch" href="https://busuanzi.ibruce.info"/> |
| 57 | + <% } %> |
| 58 | + |
42 | 59 | <meta http-equiv="X-UA-Compatible"> |
43 | 60 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
44 | 61 | <meta name="theme-color" content="<%= theme.uiux.android_chrome_color %>"> |
45 | 62 | <meta name="author" content="<%= config.author %>"> |
46 | 63 | <meta name="description" content="<%= config.description %>"> |
47 | 64 | <meta name="keywords" content="<%= theme.head.keywords %><% if(page.tags && page.tags.each) { page.tags.each(function(tag) { %><%- ',' + tag.name %><% })} %>"> |
48 | 65 |
|
| 66 | + <!-- Favicons --> |
| 67 | + <link rel="icon shortcut" type="image/ico" href="<%= theme.head.favicon %>"> |
| 68 | + <link rel="icon" sizes="192x192" href="<%= theme.head.high_res_favicon %>"> |
| 69 | + <link rel="apple-touch-icon" href="<%= theme.head.apple_touch_icon %>"> |
| 70 | + |
49 | 71 | <!--iOS --> |
50 | 72 | <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> |
51 | 73 | <meta name="apple-mobile-web-app-title" content="Title"> |
|
126 | 148 | </script> |
127 | 149 | <% } %> |
128 | 150 |
|
| 151 | +
|
129 | 152 | <!-- Bing Background --> |
130 | 153 | <% if(theme.background.bing.enable) { %> |
131 | 154 | <script type="text/javascript"> |
132 | 155 | queue.offer(function(){ |
133 | 156 | $('body').attr('data-original', 'https://api.i-meto.com/bing?<%= theme.background.bing.parameter %>'); |
134 | | - $('body.lazy').lazyload(); |
135 | 157 | }); |
136 | 158 | </script> |
137 | 159 | <% } %> |
|
0 commit comments