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

Fix show_excerpts in collection layout's front matter #2732

Closed
wants to merge 2 commits into from

Conversation

CrazyOrr
Copy link

@CrazyOrr CrazyOrr commented Nov 8, 2020

This is a bug fix.

Summary

The show_excerpts front matter in collection layout doesn't work as documented for now. Fixed it.

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had recent activity.

If this is a bug and you can still reproduce this error on the master branch, please reply with any additional information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in 7 days if no further activity occurs. Thank you for all your contributions.

@@ -10,6 +10,12 @@
{% assign title = post.title %}
{% endif %}

{% if show_excerpts == false %}
{% assign show_excerpt = false %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we be consistent with plural form here? I'd go with show_excerpts. Same for 2 more occurrences below.

Copy link
Author

@CrazyOrr CrazyOrr Feb 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, as long as you don't mind overshadowing the original variable show_excerpts.
This block here is essentially a workaround for this.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, looks like there's no need for show_excerpt at all. Just use show_excerpts != false below and it'll be fine.

To be honest, I'm kind of puzzled about all these variables now.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good idea.

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity.

This pull request will automatically be closed in 7 days if no further activity occurs. Thank you for all your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants