mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-08-13 18:02:25 +00:00
deploy: ff978f3be1
This commit is contained in:
parent
24dd71fb62
commit
c7f15774e3
259 changed files with 6584 additions and 6580 deletions
|
@ -254,7 +254,12 @@ var variants = {
|
|||
},
|
||||
|
||||
getStylesheet: function(){
|
||||
this.download( this.generateStylesheet(), 'text/css', 'theme-' + this.customvariantname + '.css' );
|
||||
var style = this.generateStylesheet();
|
||||
if( !style ){
|
||||
alert( 'There is nothing to be generated as auto mode variants will be generated by Hugo' );
|
||||
return;
|
||||
}
|
||||
this.download( style, 'text/css', 'theme-' + this.customvariantname + '.css' );
|
||||
},
|
||||
|
||||
adjustCSSRules: function(selector, props, sheets) {
|
||||
|
@ -427,7 +432,6 @@ var variants = {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue