11 Commits

Author SHA1 Message Date
Hakim Zulkufli
97058daa12 Generate title (if empty) from the content.
A new function is created to achieve this, Text::truncate
which is based on Text::cut from the text.class.php helper.

Limit is set to 60 characters.

Example A:
1. Content has over 60 characters.
2. Title = First 60 characters + remaining characters of the last word + '...'

Example B:
1. Content has less than or equal to 60 characters
2. Title = All.

Example C:
1. Content only has one word but is over 60 characters.
2. Title = First 60 characters + '...'

Why B and C differ from each other?
Because we do not want the whole that one weird word
with over 60 characters to make its way to the title.
It's probably unrealistic, the code can be much cleaner
with B and C combined.

Feel free to discuss.
2017-08-06 00:49:52 +08:00
Diego
a28a02164c UUID for posts and pages 2017-04-26 21:26:17 +02:00
Diego
19ef56301e Bug fixes 2017-04-26 18:56:10 +02:00
Diego
1ac65fe343 Category feature 2017-04-17 12:49:03 +02:00
Diego Najar
a5af1ec827 Merge pull request #314 from janxb/patch-1
Fixed PHP notice after installation and javascript translations
2016-07-29 00:54:38 +02:00
dignajar
44274331d8 Bug fixes, index.md compatibility 2016-07-25 20:40:51 -03:00
janxb
21f76faba3 fixed php notice after installation 2016-07-25 16:56:43 +02:00
dignajar
d3cc0f8e48 Cli mode updates, filename for posts and pages 2016-07-16 20:19:10 -03:00
dignajar
9827b18b43 Dashboard more responsive 2016-05-28 21:54:18 -03:00
dignajar
221ce7e6f7 Updater imrpoves 2016-01-29 13:07:29 -03:00
dignajar
e7890f4a71 changes on directories names 2016-01-20 21:29:01 -03:00