Account

Typecho Blog Program Usage Notes

🌐 English translation · View Chinese original

Typecho 1.3 article sorting issue

By default, articles are sorted in descending order by creation time. To change to ascending order, you need to modify

Open the Archive.php file in the var/Widget/ path, and find around line 688:

$select->order('table.contents.created', Db::SORT_DESC)

This sorts by article creation time in descending order. If we want to change to other sorting methods, replace it with the following code.

Sort by article creation time in ascending order

$select->order('table.contents.created', Db::SORT_ASC);

Sort by article last modified time in descending order

$select->order('table.contents.modified', Db::SORT_DESC);

Sort by article last modified time in ascending order

$select->order('table.contents.modified', Db::SORT_ASC);

Avatar blocked issue:

Add the following to config.inc.php:

//Just add this line of code!
define('__TYPECHO_GRAVATAR_PREFIX__', 'https://cdn.sep.cc/avatar/');
老
老吕

爱茶、做茶、写茶:我是老吕,这是我的茶生活与文字空间。

Follow

Paragraph comments 0 · moderated

No paragraph comments yet — log in and discuss under a paragraph.

Comments 0 · moderated

No comments yet — be the first.
Be kind to the author and readers