Skip to content

Commit

Permalink
fix: support hexo 7+ highlighter config (close #197)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed Feb 28, 2024
1 parent f3312dd commit 4a98425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<%- css_theme_cdn('css/kr-color-dark.min.css', {id: "darkmode-css", media:"(prefers-color-scheme: dark)"}) %>
<%- js_theme_cdn('js/kr-dark.min.js') %>
<% } %>
<% if (config.highlight && config.highlight.enable && theme.highlight_theme) { %>
<% if (((config.highlight && config.highlight.enable) || config.syntax_highlighter === "highlight.js") && theme.highlight_theme) { %>
<%- css_theme_cdn(`css/highlight/${theme.highlight_theme || 'night-eighties'}.min.css`, {id: "highlight-css", media:"all"}) %>
<% } %>
<%- css_npm_cdn('font-awesome', 'css/font-awesome.min.css', {id:"fontawe-css", media:"all"}) %>
Expand Down

0 comments on commit 4a98425

Please sign in to comment.