gethugothemes / liva-hugo

Liva is a personal blog template powered by Hugo.
https://gethugothemes.com/products/liva/?utm_source=liva_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
276 stars 235 forks source link

type="post" not working. #24

Closed KushajveerSingh closed 4 years ago

KushajveerSingh commented 4 years ago

I created a new menu option in config.toml as follows

[[menu.main]]
  name = "Projects"
  URL = "projects"
  weight = 3

After this I created _index.md file hugo new projects/_index.md.

I have the following code in the file

---
title: "Projects"
date: 2020-05-13T02:37:23+05:30
draft: false
type: "post"
---

But this not work. It does not display the text in the page. But when I change to type='about it works. Am I setting the type wrong?

somratpro commented 4 years ago

type: "post" is only for blog posts. you don't need to declare any type for creating a new page like this. but you need to create a layout for this page. you can copy the about page layout and rename it projects. and do some modifications.