mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 18:37:05 +08:00
parent
c41edc86e1
commit
a718c05324
@ -231,10 +231,10 @@ function initMermaid( update, attrs ) {
|
||||
var code = e.querySelector( '.mermaid-code' );
|
||||
var parse = parseGraph( decodeHTML( code.innerHTML ) );
|
||||
|
||||
if( parse.dir.relearn_user_theme || parse.yaml.relearn_user_theme ){
|
||||
if( parse.yaml.relearn_user_theme || parse.dir.relearn_user_theme ){
|
||||
return;
|
||||
}
|
||||
if( parse.dir.theme == theme || parse.yaml.theme == theme ){
|
||||
if( parse.yaml.theme == theme || parse.dir.theme == theme ){
|
||||
return;
|
||||
}
|
||||
is_initialized = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user