<head hexo-theme='https://github.com/volantis-x/hexo-theme-volantis/#<%- theme.info.theme_version %>'>
  <%- meta_generator() %>
  <meta name="Volantis" content="<%- theme.info.theme_version %>">
  <meta charset="utf-8">
  <!-- SEO相关 -->
  <%- generate_seo(theme, page) %>
  <%- autoCanonical(config, page) %>
  <!-- 渲染优化 -->
  <%_ if (theme.dns_prefetch && theme.dns_prefetch.length){ _%>
    <meta http-equiv='x-dns-prefetch-control' content='on' />
    <%_ getList(theme.dns_prefetch).forEach(function(item){ _%>
      <link rel='dns-prefetch' href='<%- item %>'>
      <link rel="preconnect" href="<%- item %>" crossorigin>
    <%_ }) _%>
  <%_ } _%>
  <meta name="renderer" content="webkit">
  <meta name="force-rendering" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <%_ if (theme.csp.enable) { _%>
    <meta http-equiv="Content-Security-Policy" content="<%- theme.csp.content %>">
  <%_ } _%>
  <meta name="HandheldFriendly" content="True" >
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
  <meta content="black-translucent" name="apple-mobile-web-app-status-bar-style">
  <meta content="telephone=no" name="format-detection">
  <!-- import head_begin begin -->
  <%_ if (config.import && config.import.head_begin){ _%>
    <%_ getList(config.import.head_begin).forEach(function(item){ _%>
      <%- item %>
    <%_ }) _%>
  <%_ } _%>
  <!-- import head_begin end -->
  <!-- Custom Files headBegin begin-->
  <%- volantis_inject('headBegin') %>
  <!-- Custom Files headBegin end-->
  <%_ if (config.favicon) { _%>
    <link rel="shortcut icon" type='image/x-icon' href="<%- url_for(config.favicon) %>">
  <%_ } _%>
  <link rel="preload" href="<%- theme.cdn.volantis_style %>" as="style">
  <%- generate_preload_fontfamily(theme) %>
  <!-- feed -->
  <%_ if (config.feed && config.feed.path){ _%>
    <%_ getList(config.feed.path).forEach(function(item){ _%>
      <%- feed_tag(item, {title: config.title}) %>
    <%_ }) _%>
  <%_ } _%>
  <!-- 页面元数据 -->
  <%- generate_title(config, theme, page) %>
  <%- generate_keywords(config, theme, page) %>
  <%- generate_description(config, theme, page) %>
  <%- open_graph(theme.open_graph) %>
  <style>
    /* 首屏样式 */
    <%- FirstCSS() %>
  </style>
  <link rel="stylesheet" href="<%- theme.cdn.volantis_style %>" media="print" onload="this.media='all';this.onload=null">
  <noscript><link rel="stylesheet" href="<%- theme.cdn.volantis_style %>"></noscript>
  <%_ if (theme.plugins.darkmode.enable) { _%>
    <script>
      let userColorScheme=localStorage.getItem("color-scheme")
      if(userColorScheme){
        document.documentElement.setAttribute("color-scheme", userColorScheme);
      }
    </script>
  <%_ } _%>
  <%- partial('../_plugins/end-of-support/script') %>
  <%- partial('scripts/global') %>
  <!-- import head_end begin -->
  <%_ if (config.import && config.import.head_end){ _%>
    <%_ getList(config.import.head_end).forEach(function(item){ _%>
      <%- item %>
    <%_ }) _%>
  <%_ } _%>
  <!-- import head_end end -->
  <!-- Custom Files headEnd begin-->
  <%- volantis_inject('headEnd') %>
  <!-- Custom Files headEnd end-->
</head>
