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

Header render issue in list page #968

Closed
bebound opened this issue Nov 30, 2024 · 2 comments
Closed

Header render issue in list page #968

bebound opened this issue Nov 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@bebound
Copy link

bebound commented Nov 30, 2024

Issue description

In Github pages, the title in the post is render in list page, which looks weird:
Screenshot 2024-11-30 at 21 05 17

It's not rendering on my localhost, but there is a # character. I don't know why they're different or what the expected behavior is. I appreciate for the help.

Screenshot 2024-11-30 at 21 09 39

Theme version

2.9.0

Hugo version

0.139.3

Which browser rendering engines are you seeing the problem on?

Chromium (Google Chrome, Microsoft Edge, Brave, Vivaldi, Opera, etc.)

URL to sample repository or website

https://github.com/bebound/bebound.github.io

Hugo output or build error messages

No response

@bebound bebound added the bug Something isn't working label Nov 30, 2024
@jpanther
Copy link
Owner

I'm not sure why you're seeing different output on the local version vs Github Pages, but what you are seeing is the expected Hugo behaviour as it will render Markdown in page summaries.

The options you have to workaround this behaviour are to either set the summary manually using front matter or using the <!--more--> tag in the post content. You could also change the summaryLength parameter in your config to be 0 as this will then only use the first sentence on the post as the summary.

For more details on how this works in Hugo, see https://gohugo.io/content-management/summaries/

I'll close this for now as I don't believe this is a bug, but feel free to add more comments if you have further details to provide.

@bebound
Copy link
Author

bebound commented Feb 24, 2025

Thanks for the reply.
Currently, the summary header is even larger than the real header. Could you please reduce its font size and weight for better readability?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants