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

How to truncate blog post written in Chinese #22

Closed
ruixinxu opened this issue Oct 1, 2015 · 1 comment
Closed

How to truncate blog post written in Chinese #22

ruixinxu opened this issue Oct 1, 2015 · 1 comment

Comments

@ruixinxu
Copy link

ruixinxu commented Oct 1, 2015

@hmfaysal your template is really strong and beautiful, bug i met a question that my blogs are all written in Chinese, it seems the {{ post.content | strip_html | truncatewords:100 }} doesn't work for Chinese, so I got my whole blogs appear on my blog homepage, any tips to solve this would be appreciate.

@matteeyah
Copy link
Contributor

This was probably fixed in: Liquid Issue #166

There's also a helper gem: Here

Also this is not directly related to the theme, so I'm closing the issue.

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

No branches or pull requests

2 participants