Since grav uses the GD Adapter of Gregwar/Image and has no option to change it, this should be safe to implement, when the latest Version of the Lib is used.
* Quick Fix Summary issues
1. Calculate the string size without any html tags, so now you can get exactly what you wanted length;
2. Support utf8 2 character widths characters, like Chinese, Japanese;
3. This is a quick dirty mod, some associated functions should be rethinked;
* fix: Add an option to compatibel with old version
Now, you can use page.summary(10) as normal, or page.summary(10, true) to ignore all html tags and medias
* fit PS2R coding style
* psr-2 reformated without assignment align
This appears to have broken page ordering.
Test-information:
Did a quick test on a personal project, clearing cache and reloading
the page fixed the default sort order of the navbar (i.e. it displayed
according to numeric folder prefixes).
```
$ bin/grav install
HINT Are you trying to install Grav? Grav is already installed. You
need to run this command only if you download a skeleton from GitHub
directly.
$ bin/grav install admin
HINT Are you trying to install a plugin or a theme? Make sure you use
bin/gpm install <something>, not bin/grav install. This command is only
used to install Grav skeletons.
```
* Update TwigExtension.php
Check if date matches, which means the post / comment was posted just now.
Will return proper value to whatever function uses it.
The file /system/languages/en.yaml and basically all language files need to include the JUST_NOW text value which should be "just now", of course correctly translated in each language.
This fix has been created in order to fix the "0 seconds from now" message as it sounds weird.
* Update en.yaml - Add JUST_NOW variable
Should be translated to other languages and included in all translation files.