mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 11:45:26 +01:00 
			
		
		
		
	Add Posts Type (#31)
This PR adds a `type = "posts"` for themes that need it. Most notably [Hyde Hyde](https://themes.gohugo.io/theme/hyde-hyde/) that currently has its index page empty will have it populated with posts once again. If more themes need different content types I will see whether it is possible to turn `type` into an array to add more of these.
This commit is contained in:
		 Alexandros
					Alexandros
				
			
				
					committed by
					
						 digitalcraftsman
						digitalcraftsman
					
				
			
			
				
	
			
			
			 digitalcraftsman
						digitalcraftsman
					
				
			
						parent
						
							946616d8e1
						
					
				
				
					commit
					8357e46a5e
				
			| @@ -2,6 +2,7 @@ | |||||||
| author: "Michael Henderson" | author: "Michael Henderson" | ||||||
| date: 2014-09-28 | date: 2014-09-28 | ||||||
| linktitle: Creating a New Theme | linktitle: Creating a New Theme | ||||||
|  | type: posts | ||||||
| title: Creating a New Theme | title: Creating a New Theme | ||||||
| weight: 10 | weight: 10 | ||||||
| series: | series: | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| +++ | +++ | ||||||
| title = "(Hu)go Template Primer" | title = "(Hu)go Template Primer" | ||||||
| description = "" | description = "" | ||||||
|  | type = "posts" | ||||||
| tags = [ | tags = [ | ||||||
|     "go", |     "go", | ||||||
|     "golang", |     "golang", | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| +++ | +++ | ||||||
| title = "Getting Started with Hugo" | title = "Getting Started with Hugo" | ||||||
| description = "" | description = "" | ||||||
|  | type = "posts" | ||||||
| tags = [ | tags = [ | ||||||
|     "go", |     "go", | ||||||
|     "golang", |     "golang", | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ featuredpath = "" | |||||||
| linktitle = "" | linktitle = "" | ||||||
| slug = "Migrer vers Hugo depuis Jekyll" | slug = "Migrer vers Hugo depuis Jekyll" | ||||||
| title = "Migrer vers Hugo depuis Jekyll" | title = "Migrer vers Hugo depuis Jekyll" | ||||||
| type = "post" | type = "posts" | ||||||
|  |  | ||||||
| +++ | +++ | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2,6 +2,7 @@ | |||||||
| date: 2014-03-10 | date: 2014-03-10 | ||||||
| linktitle: Migrating from Jekyll | linktitle: Migrating from Jekyll | ||||||
| title: Migrate to Hugo from Jekyll | title: Migrate to Hugo from Jekyll | ||||||
|  | type: posts | ||||||
| weight: 10 | weight: 10 | ||||||
| series: | series: | ||||||
| - Hugo 101 | - Hugo 101 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user