-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(head): minor changes of dns-prefetch
- split the dns-prefetch - add `chart.google.com` - add `custom_font_host`
- Loading branch information
Showing
2 changed files
with
45 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<meta http-equiv="x-dns-prefetch-control" content="on"> | ||
<% if(theme.vendors.materialcdn) { %> | ||
<link rel="dns-prefetch" href="<%= theme.vendors.materialcdn %>"/> | ||
<% } %> | ||
<% if(theme.leancloud.enable === true) { %> | ||
<link rel="dns-prefetch" href="<%= theme.leancloud.av_core_mini %>"/> | ||
<% } %> | ||
<% if(theme.busuanzi.enable === true) { %> | ||
<link rel="dns-prefetch" href="https://busuanzi.ibruce.info"/> | ||
<% } %> | ||
<% if(theme.comment.use == "changyan"){ %> | ||
<link rel="dns-prefetch" href="https://changyan.sohu.com"/> | ||
<% } %> | ||
<% if(theme.comment.use == "163gentie"){ %> | ||
<link rel="dns-prefetch" href="https://img1.cache.netease.com"/> | ||
<% } %> | ||
<% if(theme.comment.use == "livere"){ %> | ||
<link rel="dns-prefetch" href="https://cdn-city.livere.com"/> | ||
<% } %> | ||
<% if(theme.analytics.use === "baidu") { %> | ||
<link rel="dns-prefetch" href="https://hm.baidu.com"/> | ||
<% } %> | ||
<% if(theme.analytics.use === "google") { %> | ||
<link rel="dns-prefetch" href="https://www.google-analytics.com"/> | ||
<% } %> | ||
<% if(theme.analytics.use === "cnzz") { %> | ||
<link rel="dns-prefetch" href="https://s95.cnzz.com"/> | ||
<% } %> | ||
<% if(theme.fonts.host === "google") { %> | ||
<link rel="dns-prefetch" href="https://fonts.googleapis.com"/> | ||
<% } %> | ||
<% if(theme.fonts.host === "baomitu") { %> | ||
<link rel="dns-prefetch" href="https://lib.baomitu.com"/> | ||
<% } %> | ||
<% if(theme.fonts.use === "custom") { %> | ||
<link rel="dns-prefetch" href="<%= theme.fonts.custom_font_host %>"/> | ||
<% } %> | ||
<% if(theme.qrcode.use === "online" && theme.qrcode.enable === "true") { %> | ||
<% if(config.language === "zh-CN") { %> | ||
<link rel="dns-prefetch" href="https://pan.baidu.com"/> | ||
<% } else { %> | ||
<link rel="dns-prefetch" href="https://chart.googleapis.com"/> | ||
<% } %> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters