Bundle CSS with Hugo's Sass feature (#705)
* migrate bootstrap and flags to bundle * migrated main.css * migrate navbar.css and plyr * migrated mulish font and darkreader * migrated static/css/sections stylesheets * migrated list page and sidebar styles * migrated search.html ( nothing to add ) * migration single page styles * remove duplicated style tags * migrate notes. Deleted unused css in static * migrate 404 css to bundle * migrate katex styles * migrate embedpdf styles * migrated katex css --------- Co-authored-by: Aaron Qian <aaron@yeet.io>
This commit is contained in:
parent
cef76eb748
commit
d9eccf58f4
670 changed files with 4108 additions and 12000 deletions
|
@ -1,4 +1,12 @@
|
|||
import hljs from 'highlight.js'
|
||||
import * as params from '@params'
|
||||
|
||||
hljs.highlightAll(params.syntaxhighlight?.hljs)
|
||||
const defaultOptions = {
|
||||
ignoreUnescapedHTML: true
|
||||
}
|
||||
|
||||
hljs.configure({
|
||||
...defaultOptions,
|
||||
...(params.syntaxhighlight?.hljs || {}),
|
||||
});
|
||||
hljs.highlightAll();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue