Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot show any post when using the theme #512

Open
acyanbird opened this issue Dec 18, 2024 · 0 comments
Open

Cannot show any post when using the theme #512

acyanbird opened this issue Dec 18, 2024 · 0 comments

Comments

@acyanbird
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant