forked from fediversity/fediversity
		
	add some documentation
This commit is contained in:
		
							parent
							
								
									ea77a44d1a
								
							
						
					
					
						commit
						68bc592c88
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		|  | @ -20,6 +20,20 @@ in | |||
|     { | ||||
|       description = '' | ||||
|         Named collections of unnamed pages | ||||
| 
 | ||||
|         Define the content type of a new collection `example` to be `article`: | ||||
| 
 | ||||
|         ```nix | ||||
|         config.collections.example.type = config.types.article; | ||||
|         ``` | ||||
| 
 | ||||
|         Add a new entry to the `example` collection: | ||||
| 
 | ||||
|         ```nix | ||||
|         config.collections.example.entry = { | ||||
|           # contents here | ||||
|         } | ||||
|         ``` | ||||
|       ''; | ||||
|       type = with types; attrsOf (submodule ({ name, config, ... }: { | ||||
|         options = { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Valentin Gagarin
							Valentin Gagarin