mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 22:32:02 +08:00
variant: fix auto mode variant download in stylesheet generator #679
This commit is contained in:
parent
7081028ec3
commit
f6288edcf4
@ -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…
x
Reference in New Issue
Block a user