Typecho 首页第一篇文章显示不一样
时间:4年前 阅读:1970
Typecho 首页第一篇文章显示不一样
在做模板的时候有的时候想要第一篇文章和其他文章样式不一样。这时候就要用到这个代码了。
代码如下:
<?php if (($this->_currentPage == 1) && ($this->sequence == 1)): ?> ... //首页第一篇文章 <?php else: ?> ... //其它文章 <?php endif; ?>
时间:4年前 阅读:1970
在做模板的时候有的时候想要第一篇文章和其他文章样式不一样。这时候就要用到这个代码了。
代码如下:
<?php if (($this->_currentPage == 1) && ($this->sequence == 1)): ?> ... //首页第一篇文章 <?php else: ?> ... //其它文章 <?php endif; ?>
网友评论