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 display summary on index page #431

Open
mather opened this issue Mar 14, 2023 · 0 comments
Open

Cannot display summary on index page #431

mather opened this issue Mar 14, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mather
Copy link

mather commented Mar 14, 2023

Describe the bug
When you use "read more" (<!--more-->) in article, index page won't display summary (under title).

summary in front matter correctly works.

To Reproduce
Steps to reproduce the behavior:

  1. Use "read more" (<!--more-->) in article.
  2. Build.
  3. See index page.

Expected behavior
The part above "read more" appears as a summary.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version of the Theme: v1.12.0
  • Version of Hugo (run a hugo version if unsure): v0.111.2+extended

Additional context
I changed this filter to plainify, and it's works. But I don't know why it works.
https://github.com/lxndrblz/anatole/blob/master/layouts/index.html#L56

- <p>{{ .Summary | markdownify }}</p>
+ <p>{{ .Summary | plainify }}</p>
@mather mather added the bug Something isn't working label Mar 14, 2023
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