mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +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:
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
|
||||||
|
Loading…
Reference in New Issue
Block a user