Typecho首页文章字数自动截取
一、Typecho首页本身自带的不带格式自动截取<?php $this->description(); ?>
二、首页文章不带格式自动截取摘要<?php $this->excerpt(30, '...'); ?>//30代表显示的字数
三、首页文章带格式自动截取
<?php
preg_match_all('/<p>.*?<\...
一、Typecho首页本身自带的不带格式自动截取<?php $this->description(); ?>
二、首页文章不带格式自动截取摘要<?php $this->excerpt(30, '...'); ?>//30代表显示的字数
三、首页文章带格式自动截取
<?php
preg_match_all('/<p>.*?<\...