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 2019-02-22 09:46:58 +02:00 committed by digitalcraftsman
parent 946616d8e1
commit 8357e46a5e
5 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -1,6 +1,7 @@
+++ +++
title = "(Hu)go Template Primer" title = "(Hu)go Template Primer"
description = "" description = ""
type = "posts"
tags = [ tags = [
"go", "go",
"golang", "golang",

View File

@ -1,6 +1,7 @@
+++ +++
title = "Getting Started with Hugo" title = "Getting Started with Hugo"
description = "" description = ""
type = "posts"
tags = [ tags = [
"go", "go",
"golang", "golang",

View File

@ -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"
+++ +++

View File

@ -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