16 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
ce438a8e02 Improves for categories 2017-05-03 21:10:03 +02:00
Hakim Zulkufli
27be5be17b Keep UUID
Fixed the broken implementation.
2017-04-30 01:43:32 +08:00
Diego
75645ce8ac Keep UUID when edit 2017-04-27 10:06:07 +02:00
Diego
a28a02164c UUID for posts and pages 2017-04-26 21:26:17 +02:00
Diego
1ac65fe343 Category feature 2017-04-17 12:49:03 +02:00
Diego
96d3efaa65 Categories implementation 2017-03-26 20:51:32 +02:00
dignajar
d3cc0f8e48 Cli mode updates, filename for posts and pages 2016-07-16 20:19:10 -03:00
dignajar
b5d2d44769 Amount of posts improves 2016-06-17 14:09:17 -03:00
dignajar
ccc9098ba9 Amount of posts improves 2016-06-17 14:08:08 -03:00
dignajar
9827b18b43 Dashboard more responsive 2016-05-28 21:54:18 -03:00
dignajar
eba94ce0d0 Simplemde updated, Uikit updated, Changes on CSS 2016-05-07 22:10:07 -03:00
dignajar
5f37660496 updates 2016-05-07 00:10:10 -03:00
dignajar
e7208d8e9b Minor bug fixes 2016-02-26 11:42:28 -03:00
dignajar
cfc9d49950 Minor bug fixes 2016-02-06 20:44:43 -03:00
dignajar
e7890f4a71 changes on directories names 2016-01-20 21:29:01 -03:00