forked from fediversity/fediversity
		
	sort news by date
This commit is contained in:
		
							parent
							
								
									0e2c56b08e
								
							
						
					
					
						commit
						80a0b1ea91
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		|  | @ -49,9 +49,14 @@ in | |||
| 
 | ||||
|       # News | ||||
| 
 | ||||
|       ${lib.concatStringsSep "\n" (map (article: '' | ||||
|       - ${article.date} [${article.title}](./${article}) | ||||
|       '') config.collections.news.entry)} | ||||
|       ${ | ||||
|         let | ||||
|           sorted = with lib; reverseList (sortOn (entry: entry.date) config.collections.news.entry); | ||||
|         in | ||||
|         lib.join "\n" (map (article: '' | ||||
|           - ${article.date} [${article.title}](./${article}) | ||||
|         '') sorted) | ||||
|       } | ||||
|     ''; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Valentin Gagarin
							Valentin Gagarin