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

Don't display post preview on homepage #496

Open
ndalf opened this issue Oct 30, 2024 · 1 comment
Open

Don't display post preview on homepage #496

ndalf opened this issue Oct 30, 2024 · 1 comment

Comments

@ndalf
Copy link

ndalf commented Oct 30, 2024

Is there a way not to display any preview of my posts on my homepage ? For the moment as soon as I add a new post, it almost completely displays on my page. I'd just like to display maybe a couple of lines as a preview, but not the whole post.

Is that possible ? I already checked the hugo.toml file but didn't find such parameter.

Thanks for your help

@roddie-digital
Copy link

If you comment out the line with contentTypeName under [[params]] in hugo.toml it should stop any posts displaying on the homepage.

But you can also use the description field in the front matter for a post to set what will show as preview text (otherwise it will but just take the first x characters of the post).

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

2 participants