9 Post Template - loyistro/gofun GitHub Wiki

Post Template

To fit this theme’s configuration, there are some useful front matter fields in the theme/gofun/archetypes/post.md file:

---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
slug: "{{ now.Format "0601021504" }}"
summary: ""
description: ""
tags: ["", ""]
toc: true
readTime: true
autonumber: true
math: true
showTags: true
hideBackToTop: false
---

I recommend using this to generate a new post:

hugo new --kind post <content-path>/<your-post-name>.md