Add conf_enable_blog function to blagh to be used to setup a blog.
This commit is contained in:
		
							parent
							
								
									efac1136d0
								
							
						
					
					
						commit
						af5a82774d
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -1,3 +1,11 @@ | ||||||
|  | # XXX Should use a function to enable blagh instead of depending on blaghDirs, that way we can save the path of the root of the blog. | ||||||
|  | fn conf_enable_blog { | ||||||
|  |     blagh_root=$conf_wd | ||||||
|  |     blagh_dirs=$* | ||||||
|  |     if(~ $#blagh_dirs 0) | ||||||
|  |         blagh_dirs=$conf_wd | ||||||
|  | } | ||||||
|  | 
 | ||||||
| fn blagh_init { | fn blagh_init { | ||||||
|     if(~ $#blaghDirs 0 && ~ $local_path */[bB]log/index*) |     if(~ $#blaghDirs 0 && ~ $local_path */[bB]log/index*) | ||||||
|         blaghDirs=( . ) |         blaghDirs=( . ) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Uriel
						Uriel