lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
657 stars 362 forks source link

Cannot display summary on index page #431

Open mather opened 1 year ago

mather commented 1 year ago

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):

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>