Skip to content

Cannot show any post when using the theme #512

@acyanbird

Description

@acyanbird

I'm using a folder to contain image and md file for each post, it works fine with the defalt ananke theme but show nothing when change to terminal

content
├── hugo-new-site
│   ├── image-1.png
│   ├── image.png
│   └── index.md
└── try-terminal
    └── index.md

this is how my structure looks like
image
image
I try to change the type name

[params]
  # dir name of your main content (default is `content/posts`).
  # the list of set content will show up on your index page (baseurl).
  contentTypeName = "hugo-new-site"

But . hugo-new-site, remaining space or try terminal all these won't work

+++
title = "使用 hugo new 新建post"
date = 2024-12-18T15:01:10+08:00
# draft = false
+++
what header looks like, won't work when comment or uncomment draft

But the post will show when using
hugo server -t ananke
image
I know that might be a very stupid question, I am a new user of hugo... If you need more information please reply me! Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions