-
Environment informations
Expected behaviorI wanted to set my own Steps to reproduce the behaviorI checked out the layout file, and find out {% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %} I notice For example {% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.description | markdownify | strip_html | truncate: 160 }}</p>{% endif %} Is it an inconsistency bug or I understand it incorrectly? All files are in my GitHub repo. Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Strange. It appears to be working correctly on the demo site. If you check out this archive page The excerpt override was set just as you did with
Do you have a public repo somewhere and a link the source of the post that's not working? Not that it should matter but is it a post, a page, or a collection document? |
Beta Was this translation helpful? Give feedback.
-
Hi Michael, thanks for your reply! I changed the I have no idea why it didn't work last night. Sorry for the trouble I made! Thanks again for your help and this amazing theme. |
Beta Was this translation helpful? Give feedback.
-
I found the issue for me was that I was running |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, |
Beta Was this translation helpful? Give feedback.
Strange. It appears to be working correctly on the demo site.
If you check out this archive page
and scroll down, the post titled "Layout: Excerpt (Defined)" has an excerpt that has been manually set.
The excerpt override was set just as you did with
excerpt:
in the post's YAML Front Matter.