artofthesmart / hypertext

An incredibly fast, compatible, and efficient Grav CMS theme.
http://hypertext.artofthesmart.com
MIT License
50 stars 14 forks source link

fix "Continue Reading..." #35

Closed takanotume24 closed 4 years ago

takanotume24 commented 4 years ago

Hi, I found a bug in the blog display and fixed it.

Before this fix, "Continue Reading..." was displayed when the page.summary and page.content were equal. The correct logic is the other way around, right? Then I found a function safe_truncate_html that cuts down the number of characters without destroying the html tags, so I changed it to that. Twig Filters & Functions | Grav Documentation

Thanks for a very good theme! I love the simplicity of it.

takanotume24 commented 4 years ago

I'm sorry, I must have been mistaken. The problem was in the wrong place. I'll check again.

artofthesmart commented 4 years ago

Thanks for posting, I'll take a look as soon as I can. I'd like to test this before merging into main.