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

Clear Reading mode only work for posts in content/posts #492

Closed
chidokun opened this issue Aug 25, 2021 · 2 comments
Closed

Clear Reading mode only work for posts in content/posts #492

chidokun opened this issue Aug 25, 2021 · 2 comments
Assignees
Labels
breaking changes enhancement New feature or request
Milestone

Comments

@chidokun
Copy link

When I upgrade my blog from version 0.4.8 to 0.5.0, posts are located in content/post.
In version 0.5.0, I notice that clearReading mode only work for posts in content/posts although I set mainSections config:

[params]
  mainSections = ['post']

Is it a bug? May I set clearReading=true for posts located in mainSections?

Configuration

  • Operating system with its version: macOS Big Sur
  • Browser with its version: Chrome 92.0.4515.159
  • Hugo version: v0.87.0+extended
  • Tranquilpeak version: 0.5.0-BETA
  • Do you reproduce on https://tranquilpeak.kakawait.com demo?: Yes
@kakawait
Copy link
Owner

You're correct. I've changed to posts... But I think neither post or posts should be hardcoded.

I think I could apply to any values in mainSections. It will be ok for you?

As workaround, you may add type: posts inside your .md

@kakawait kakawait added breaking changes enhancement New feature or request labels Aug 25, 2021
@kakawait kakawait self-assigned this Aug 25, 2021
@kakawait kakawait added this to the 0.5.1-BETA milestone Aug 25, 2021
@chidokun
Copy link
Author

Sure! I definitely agree with you that it should be applied to any values in mainSections 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking changes enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants