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/');
Paragraph comments 0 · moderated
Comments 0 · moderated