From 8357e46a5e41fbd263680db6933380f8aaeca9fd Mon Sep 17 00:00:00 2001 From: Alexandros Date: Fri, 22 Feb 2019 09:46:58 +0200 Subject: [PATCH] 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. --- content/post/creating-a-new-theme.md | 1 + content/post/goisforlovers.md | 1 + content/post/hugoisforlovers.md | 1 + content/post/migrate-from-jekyll.fr.md | 2 +- content/post/migrate-from-jekyll.md | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/content/post/creating-a-new-theme.md b/content/post/creating-a-new-theme.md index bf33bc3c..b2321286 100644 --- a/content/post/creating-a-new-theme.md +++ b/content/post/creating-a-new-theme.md @@ -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: diff --git a/content/post/goisforlovers.md b/content/post/goisforlovers.md index 003d8d56..84110cb9 100644 --- a/content/post/goisforlovers.md +++ b/content/post/goisforlovers.md @@ -1,6 +1,7 @@ +++ title = "(Hu)go Template Primer" description = "" +type = "posts" tags = [ "go", "golang", diff --git a/content/post/hugoisforlovers.md b/content/post/hugoisforlovers.md index 47124442..a95362c7 100644 --- a/content/post/hugoisforlovers.md +++ b/content/post/hugoisforlovers.md @@ -1,6 +1,7 @@ +++ title = "Getting Started with Hugo" description = "" +type = "posts" tags = [ "go", "golang", diff --git a/content/post/migrate-from-jekyll.fr.md b/content/post/migrate-from-jekyll.fr.md index 550d9dec..66eeaf6b 100644 --- a/content/post/migrate-from-jekyll.fr.md +++ b/content/post/migrate-from-jekyll.fr.md @@ -9,7 +9,7 @@ featuredpath = "" linktitle = "" slug = "Migrer vers Hugo depuis Jekyll" title = "Migrer vers Hugo depuis Jekyll" -type = "post" +type = "posts" +++ diff --git a/content/post/migrate-from-jekyll.md b/content/post/migrate-from-jekyll.md index f7d306de..de739baa 100644 --- a/content/post/migrate-from-jekyll.md +++ b/content/post/migrate-from-jekyll.md @@ -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