-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Show a teaser on the blog listing page. #491
Comments
Hi @JoshOrndorff! I don't think it's documented anywhere (I should fix this), but tabi is compatible with Zola's summary feature. This means you can do this:
And it will include everything up to the Give it a try and let me know if that's what you wanted! |
Thank you for pointing out the summary feature. I was not aware of that. This is a big step in the right direction. But one little bit remains. My site has a type of post that are micro blogs: usually only a sentence or two long, few hundred characters max. For these micro blogs, the summary should typically be the entire content. This can be achieved by having content creators put a However this could easily be forgotten and is an annoyance even when one remembers. Can I have the summary default to the full content (rather than empty) when no summary break is explicitly set? |
That is something that I considered while replying to you. I've seen some sites using tabi with empty descriptions (no We could take the first This shouldn't be too hard to implement. We'd need to use it consistently though (e.g. include Would you be interested in working on this feature? I'd be happy to provide assistance in any way (review/complete the PR, answer questions…). Let me know! |
Okay, so basically, I initially really wanted to help with this. I am brand new to Zola and its templating. But I am a Rust developer and I am ready and willing to learn Zola. However, I am really hesitating about committing to zola because I'm worried that it's |
Summary and motivation
I would like my blog listing page to show a "teaser" of the content in the post. It could be as simple as the first 300 characters or something like that.
I didn't see a way to do this with current tabi settings.
I can make my site look the say I want by copying the first 300 characters into the description in the frontmatter, but I prefer not to duplicate the content.
Implementation details
No response
Checklist
The text was updated successfully, but these errors were encountered: