File tree Expand file tree Collapse file tree 3 files changed +23
-14
lines changed Expand file tree Collapse file tree 3 files changed +23
-14
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,24 @@ head: # 删改前确定知道自己在做什么
112112 value : stylesheet
113113 - key : href
114114 value : /public/css/younglord.css
115+ - tag : link
116+ var :
117+ - key : rel
118+ value : stylesheet
119+ - key : href
120+ value : //cdn.jsdelivr.net/npm/prismjs/themes/prism.min.css
121+ - tag : link
122+ var :
123+ - key : rel
124+ value : stylesheet
125+ - key : href
126+ value : //cdn.jsdelivr.net/npm/prismjs/plugins/line-numbers/prism-line-numbers.min.css
127+ - tag : link
128+ var :
129+ - key : rel
130+ value : stylesheet
131+ - key : href
132+ value : //cdn.jsdelivr.net/npm/prismjs/plugins/toolbar/prism-toolbar.min.css
115133# - tag: link
116134# var:
117135# - key: rel
@@ -165,9 +183,6 @@ script: # 需要在正文前调用的脚本或者插件的autoloader
165183- var :
166184 - key : src
167185 value : //cdn.jsdelivr.net/gh/Young-Lord/Young-Lord.github.io@latest/public/js/prism.min.js
168- - var :
169- - key : src
170- value : //cdn.jsdelivr.net/gh/Young-Lord/Young-Lord.github.io@latest/public/js/OVERRIDE_CSS.min.js
171186# - var: mathjax
172187# - key: src
173188# value: //cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -38,8 +38,9 @@ function loadStyle(url) {
3838 } ) ( ) ;
3939 loadJs ( '//cdn.jsdelivr.net/npm/prismjs/components/prism-core.min.js' )
4040 . then ( function ( ) {
41- loadStyle ( '//cdn.jsdelivr.net/npm/prismjs/themes/prism.min.css' ) ; //在https://github.com/PrismJS/prism/tree/master/themes 内查看可用主题,或者也可以搜一些第三方主题
42- loadStyle ( '//cdn.jsdelivr.net/npm/prismjs/plugins/line-numbers/prism-line-numbers.min.css' ) ;
41+ //loadStyle('//cdn.jsdelivr.net/npm/prismjs/themes/prism.min.css'); //在https://github.com/PrismJS/prism/tree/master/themes 内查看可用主题,或者也可以搜一些第三方主题
42+ //loadStyle('//cdn.jsdelivr.net/npm/prismjs/plugins/line-numbers/prism-line-numbers.min.css');
43+ //move to _config.yml
4344 document . addEventListener ( "DOMContentLoaded" , function ( ) {
4445 for ( var i = 0 , x = document . getElementsByTagName ( "pre" ) ; i < x . length ; i ++ )
4546 x [ i ] . classList . add ( 'line-numbers' ) ;
@@ -52,7 +53,8 @@ function loadStyle(url) {
5253
5354 loadJs ( '//cdn.jsdelivr.net/npm/prismjs/plugins/toolbar/prism-toolbar.min.js' )
5455 . then ( function ( ) {
55- loadStyle ( '//cdn.jsdelivr.net/npm/prismjs/plugins/toolbar/prism-toolbar.min.css' ) ;
56+ //loadStyle('//cdn.jsdelivr.net/npm/prismjs/plugins/toolbar/prism-toolbar.min.css');
57+ //move to _config.yml
5658 Prism . plugins . toolbar . registerButton ( 'select-code' , function ( env ) {
5759 var button = document . createElement ( 'button' ) ;
5860 button . innerHTML = 'select this ' + env . language ;
You can’t perform that action at this time.
0 commit comments