判断是否为首页并自定义输出内容

yibin 2015-02-08 Typecho 533

判断是否为首页,输出相关内容

<?php if($this->is('index')): ?>
//首页输出内容
<?php else: ?>
//不是首页输出内容
<?php endif; ?>

判断当前分类,输出内容:

扫码添加微信

13013082126 扫描微信 建站咨询 优化咨询