Skip to content

Commit d9eccf5

Browse files
aq1018Aaron Qian
and
Aaron Qian
authoredJan 27, 2023
Bundle CSS with Hugo's Sass feature (hugo-toha#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 <[email protected]>
1 parent cef76eb commit d9eccf5

File tree

670 files changed

+4108
-12000
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

670 files changed

+4108
-12000
lines changed
 

‎assets/jsconfig.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"*": [
6+
"*"
7+
]
8+
}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
import hljs from 'highlight.js'
22
import * as params from '@params'
33

4-
hljs.highlightAll(params.syntaxhighlight?.hljs)
4+
const defaultOptions = {
5+
ignoreUnescapedHTML: true
6+
}
7+
8+
hljs.configure({
9+
...defaultOptions,
10+
...(params.syntaxhighlight?.hljs || {}),
11+
});
12+
hljs.highlightAll();

0 commit comments

Comments
 (0)
Please sign in to comment.