mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
variant: fix auto mode variant download in stylesheet generator #679
This commit is contained in:
parent
7081028ec3
commit
f6288edcf4
1 changed files with 5 additions and 1 deletions
|
@ -361,7 +361,7 @@ var variants = {
|
||||||
}
|
}
|
||||||
if( !read_style ){
|
if( !read_style ){
|
||||||
if( with_prompt ){
|
if( with_prompt ){
|
||||||
alert( 'A auto mode variant can not be changed. Please select its light/dark variant directly to make changes' );
|
alert( 'An auto mode variant can not be changed. Please select its light/dark variant directly to make changes' );
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -426,6 +426,10 @@ var variants = {
|
||||||
if( !read_style ){
|
if( !read_style ){
|
||||||
read_style = write_style;
|
read_style = write_style;
|
||||||
}
|
}
|
||||||
|
if( !read_style ){
|
||||||
|
alert( 'An auto mode variant will be generated by Hugo and must not be stored in a separate stylesheet' );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var style =
|
var style =
|
||||||
'/* ' + this.customvariantname + ' */\n' +
|
'/* ' + this.customvariantname + ' */\n' +
|
||||||
|
|
Loading…
Reference in a new issue