Don't cascade blogDirs setting into individual blog dir items
This commit is contained in:
		
							parent
							
								
									5a6eef9ee8
								
							
						
					
					
						commit
						3704245426
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -80,7 +80,7 @@ fn genbody { | |||
|     if not if ( test -f $body.html ) | ||||
|         cat $body.html | /bin/sed '0,/<body>/d; /<\/body>/,$d'  | ||||
|     if not if (~ $body *.html && test -f $body ) | ||||
|         sed '0,/<body>/d;/<\/body>/,$d' < $body | ||||
|         cat $body | /bin/sed -i '0,/<body[^>]*>/d;/<\/body>/,$d'  | ||||
|     if not if ( ~ $body */[bB]log/index */[bB]log//index && ~ $#blogDirs 0 ) | ||||
|         blogDirs = `{basename -d $body} | ||||
|     if not if(~ $body */index && ~ $#blogDirs 0) { | ||||
|  | @ -119,6 +119,7 @@ if (! ~ $args '') { | |||
| fpath=$sitedir | ||||
| for ( i in '' $args ) { | ||||
|     fpath = $fpath/$i | ||||
|     blogDirs = () # We don't want blog settings to cascade into posts | ||||
|     if ( test -f $fpath/_config ) | ||||
|         . $fpath/_config | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Uriel
						Uriel