mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
variant: fix variant detection for official documentation #188
This commit is contained in:
parent
3ff5aa9c82
commit
fb2df556bc
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@
|
||||||
if( !s || !s.match ){
|
if( !s || !s.match ){
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
var matches = s.match(/^.*\/?theme-(.*?)\.css.*$/);
|
var matches = s.match(/^.*\/?theme-([^\/]*?)\.css.*$/);
|
||||||
var theme = matches && matches.length == 2 ? matches[ 1 ] : '';
|
var theme = matches && matches.length == 2 ? matches[ 1 ] : '';
|
||||||
return theme;
|
return theme;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue