<%- css_ex(theme.static_prefix.bootstrap, 'css/bootstrap.min.css') %>

<% if (is_post() || is_page()) { %>
  <%- css_ex(theme.static_prefix.github_markdown, 'github-markdown.min.css') %>
  <%- css_ex(theme.static_prefix.hint, 'hint.min.css') %>

  <% if (theme.code.highlight.enable) { %>
    <% var cssName %>
    <% if (theme.code.highlight.lib === 'highlightjs') { %>
      <% cssName = theme.code.highlight.highlightjs.style.toLowerCase().replace(/(?<!([0-9]))\s(?!([0-9]))/g, '-').replace(/\s/g, '') %>
      <%- css_ex(theme.static_prefix.highlightjs, `/styles/${ cssName }.min.css`) %>
    <% } else if (theme.code.highlight.lib === 'prismjs') { %>
      <% var style = theme.code.highlight.prismjs.style %>
      <% if (/\.css$/.test(style)) { %>
        <%- css(style) %>
      <% } else { %>
        <% if (!style || style === 'default') { %>
          <% cssName = '' %>
        <% } else { %>
          <% cssName = style.toLowerCase().replace(/[\s\-]/g, '') %>
          <% if (cssName === 'prism') { cssName = '' } %>
          <% if (cssName === 'tomorrownight') { cssName = 'tomorrow' } %>
        <% } %>
        <%- css_ex(theme.static_prefix.prismjs, `/themes/${ cssName ? 'prism-' + cssName : 'prism' }.min.css`) %>
      <% } %>
      <% if (theme.code.highlight.line_number) { %>
        <%- css_ex(theme.static_prefix.prismjs, '/plugins/line-numbers/prism-line-numbers.min.css') %>
      <% } %>
    <% } %>
  <% } %>

  <% if ((is_post() || (is_page() && page.image_zoom)) && theme.post.image_zoom.enable) { %>
    <%- css_ex(theme.static_prefix.fancybox, 'jquery.fancybox.min.css') %>
  <% } %>

<% } %>

<!-- 主题依赖的图标库，不要自行修改 -->
<%- css('//at.alicdn.com/t/font_1749284_ba1fz6golrf.css') %>

<%- css(theme.static_prefix.iconfont) %>

<%- css_ex(theme.static_prefix.internal_css, 'main.css') %>

<!-- 自定义样式保持在最底部 -->
<% if (theme.custom_css) { %>
  <%- css(theme.custom_css) %>
<% } %>
