hexo/node_modules/hexo-theme-fluid/layout/_partials/plugins/highlight.ejs

14 lines
522 B
Plaintext
Raw Normal View History

2023-10-03 11:14:36 +08:00
<%
if (theme.code.highlight.lib === 'prismjs') {
if (!theme.code.highlight.prismjs.preprocess) {
import_js(theme.static_prefix.prismjs, 'components/prism-core.min.js')
import_js(theme.static_prefix.prismjs, 'plugins/autoloader/prism-autoloader.min.js')
}
if (theme.code.highlight.line_number) {
import_css(theme.static_prefix.prismjs, '/plugins/line-numbers/prism-line-numbers.min.css')
import_js(theme.static_prefix.prismjs, '/plugins/line-numbers/prism-line-numbers.min.js')
}
}
%>