Typecho设置文章缩阅显示字数

  • 登陆博客后台,把鼠标移至“控制台”,

  • 在下拉菜单中选择“外观”选项在进入的页面中点击“编辑当前外观”

  • 在index.php和archive.php文件找到如下代码

<?php $this->content('阅读剩余部分...'); ?>

然后将其替换为:

<?php $this->excerpt(); ?>

如果要按制摘要的输出字数,可以修改代码为:

<?php $this->excerpt(200, '...'); ?>

200代表缩阅的输出字节,可以自行设置


相关连接
Rat's Blog:https://www.moerats.com/archives/90/

发表评论

1 条评论

  1. Lorem ipsum 123 789

    Lorem ipsum 123 789