Fix: don't completely delete 'sort helper' delimiter, revert it back to a '/', and coalesce any extra '/' for tidiness
This commit is contained in:
		
							parent
							
								
									43b5151215
								
							
						
					
					
						commit
						bd54b147f1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -79,7 +79,7 @@ fn sortedBlogPostList { | ||||||
|     # the /./->/|/ are added so we can sort -t| and order only the file name |     # the /./->/|/ are added so we can sort -t| and order only the file name | ||||||
|     # NOTE: this breaks if any path element in blogDirs contain '/./' or '|' |     # NOTE: this breaks if any path element in blogDirs contain '/./' or '|' | ||||||
|     if (! ~ $#* 0) |     if (! ~ $#* 0) | ||||||
|         ls $*^'/./' | sed -n 's,/\./,/|/,; /\/[0-9]+.*\.md$/p' | sort -r '-t|' +1 | sed 's,/\|/,,' |         ls $*^'/./' | sed -n 's,/\./,/|/,; /\/[0-9]+.*\.md$/p' | sort -r '-t|' +1 | sed 's,/+\|/+,/,' | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| fn gen_blog_post_title { | fn gen_blog_post_title { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Uriel
						Uriel