mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-08-17 03:42:24 +00:00
deploy: 8cca74e3e6
This commit is contained in:
parent
d66bf78487
commit
d9659da92d
268 changed files with 7181 additions and 6827 deletions
|
@ -89,7 +89,8 @@ var variants = {
|
|||
},
|
||||
|
||||
generateVariantPath: function( variant, old_path ){
|
||||
var new_path = old_path.replace( /^(.*\/theme-).*?(\.css.*)$/, '$1' + variant + '$2' );
|
||||
var mod = window.relearn.themeVariantModifier.replace( '.', '\\.' );
|
||||
var new_path = old_path.replace( new RegExp(`^(.*\/theme-).*?(${mod}\.css.*)$`), '$1' + variant + '$2' );
|
||||
return new_path;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue