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"
date: 2014-09-28
linktitle: Creating a New Theme
type: posts
title: Creating a New Theme
weight: 10
series:

View File

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

View File

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

View File

@ -9,7 +9,7 @@ featuredpath = ""
linktitle = ""
slug = "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
linktitle: Migrating from Jekyll
title: Migrate to Hugo from Jekyll
type: posts
weight: 10
series:
- Hugo 101