我的网站首页!www.568mi.com!
我使用其他程序魔板~自己定义了一下·~现在是小白!请问首页的展示文章数目怎么增加~
文章首页展示限制
版主: seita
Re: 文章首页展示限制
代码如下:
<?php
/**
* 扁平化设计。如同少年,迎风而立。
*
* @package handsome
* @author 友人C
* @version 1.6.2
* @link https://github.com/ihewro/typecho-theme-handsome/
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<!-- aside -->
<?php $this->need('aside.php'); ?>
<!-- / aside -->
<style type="text/css">
#mian{
width:100%;
height: 150px;
background-color: #fff;
}
.tp {
float: left;
height: 150px;
width: 40%;
}
.bt{float: left;
height: 150px;
width: 60%;
}
.gg{
height: 120px;
width: 100%;
margin-bottom: 20px;
}
</style>
<!-- content -->
<div id="content" class="app-content">
<div class="butterbar hide">
<span class="bar"></span>
</div>
<a href="#" class="off-screen-toggle hide" data-toggle-class=".app-aside=off-screen"></a>
<main class="app-content-body">
<div class="hbox hbox-auto-xs hbox-auto-sm">
<div class="col">
<header class="bg-light lter b-b wrapper-md">
<h1 class="m-n font-thin h3 text-black l-h"><?php $this->options->IndexName(); ?></h1>
<small class="text-muted"><?php $this->options->Indexwords(); ?></small>
</header>
<div class="wrapper-md">
<div class="gg"><a href="#"><img src="http://pic2.ooopic.com/13/51/55/40bOOOPICae_1024.jpg" width="100%" height="120px;"></a></div>
<!--首页输出文章-->
<div class="blog-post">
<?php while($this->next()): ?>
<div id="mian">
<div class="panel" style="/* border-bottom-color: teal; */border: 0px;">
<!--首页文章页面头图-->
<div class="tp">
<?php if($this->fields->thumb == "no"): ?>
<!--自定义字段为no,则不输出头图-->
<?php else: ?>
<?php if (!empty($this->options->indexsetup) && in_array('NoRandomPic-index', $this->options->indexsetup)): ?>
<?php else: ?>
<div id="index-post-img">
<a href="<?php $this->permalink() ?>">
<?php if ($this->options->RandomPicChoice !=='0' && array_key_exists('thumb',unserialize($this->___fields()))): ?>
<img src="<?php echo $this->fields->thumb; ?>" class="img-full">
<?php else: ?>
<?php $thumb = showThumbnail($this); if(!empty($thumb)): ?>
<img src="<?php echo $thumb ?>" class="img-full">
<?php endif; ?>
<?php endif; ?>
</a>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
<!--首页文章内容-->
<div class="bt">
<div class="wrapper-lg">
<h4 class="m-t-none"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h4>
<?php if (!empty($this->options->indexsetup) && in_array('NoSummary-index', $this->options->indexsetup)): ?>
<?php else: ?>
<?php endif; ?>
</div>
<div class="text-muted" style="margin-left: 30px;">
<i class="iconfont icon-user1 text-muted"></i> <a href="<?php $this->author->permalink(); ?>" class="m-r-sm"><?php $this->author(); ?> </a>
<i class="iconfont icon-clocko text-muted"></i> <?php $this->date('F j, Y'); ?>
<a href="<?php $this->permalink() ?>#comments" class="m-l-sm"><i class="iconfont icon-comments text-muted"></i> <?php $this->commentsNum(_t(' 暂无评论'), _t(' 1 条评论'), _t(' %d 条评论')); ?></a>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
<!--分页首页按钮-->
<nav class="text-center m-t-lg m-b-lg" role="navigation">
<?php $this->pageNav('«', '»'); ?>
</nav>
</div>
</div>
<!--首页右侧栏-->
<?php $this->need('sidebar.php') ?>
</div>
</main>
</div>
<!-- /content -->
<!-- footer -->
<?php $this->need('footer.php'); ?>
<!-- / footer -->
<?php
/**
* 扁平化设计。如同少年,迎风而立。
*
* @package handsome
* @author 友人C
* @version 1.6.2
* @link https://github.com/ihewro/typecho-theme-handsome/
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<!-- aside -->
<?php $this->need('aside.php'); ?>
<!-- / aside -->
<style type="text/css">
#mian{
width:100%;
height: 150px;
background-color: #fff;
}
.tp {
float: left;
height: 150px;
width: 40%;
}
.bt{float: left;
height: 150px;
width: 60%;
}
.gg{
height: 120px;
width: 100%;
margin-bottom: 20px;
}
</style>
<!-- content -->
<div id="content" class="app-content">
<div class="butterbar hide">
<span class="bar"></span>
</div>
<a href="#" class="off-screen-toggle hide" data-toggle-class=".app-aside=off-screen"></a>
<main class="app-content-body">
<div class="hbox hbox-auto-xs hbox-auto-sm">
<div class="col">
<header class="bg-light lter b-b wrapper-md">
<h1 class="m-n font-thin h3 text-black l-h"><?php $this->options->IndexName(); ?></h1>
<small class="text-muted"><?php $this->options->Indexwords(); ?></small>
</header>
<div class="wrapper-md">
<div class="gg"><a href="#"><img src="http://pic2.ooopic.com/13/51/55/40bOOOPICae_1024.jpg" width="100%" height="120px;"></a></div>
<!--首页输出文章-->
<div class="blog-post">
<?php while($this->next()): ?>
<div id="mian">
<div class="panel" style="/* border-bottom-color: teal; */border: 0px;">
<!--首页文章页面头图-->
<div class="tp">
<?php if($this->fields->thumb == "no"): ?>
<!--自定义字段为no,则不输出头图-->
<?php else: ?>
<?php if (!empty($this->options->indexsetup) && in_array('NoRandomPic-index', $this->options->indexsetup)): ?>
<?php else: ?>
<div id="index-post-img">
<a href="<?php $this->permalink() ?>">
<?php if ($this->options->RandomPicChoice !=='0' && array_key_exists('thumb',unserialize($this->___fields()))): ?>
<img src="<?php echo $this->fields->thumb; ?>" class="img-full">
<?php else: ?>
<?php $thumb = showThumbnail($this); if(!empty($thumb)): ?>
<img src="<?php echo $thumb ?>" class="img-full">
<?php endif; ?>
<?php endif; ?>
</a>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
<!--首页文章内容-->
<div class="bt">
<div class="wrapper-lg">
<h4 class="m-t-none"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h4>
<?php if (!empty($this->options->indexsetup) && in_array('NoSummary-index', $this->options->indexsetup)): ?>
<?php else: ?>
<?php endif; ?>
</div>
<div class="text-muted" style="margin-left: 30px;">
<i class="iconfont icon-user1 text-muted"></i> <a href="<?php $this->author->permalink(); ?>" class="m-r-sm"><?php $this->author(); ?> </a>
<i class="iconfont icon-clocko text-muted"></i> <?php $this->date('F j, Y'); ?>
<a href="<?php $this->permalink() ?>#comments" class="m-l-sm"><i class="iconfont icon-comments text-muted"></i> <?php $this->commentsNum(_t(' 暂无评论'), _t(' 1 条评论'), _t(' %d 条评论')); ?></a>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
<!--分页首页按钮-->
<nav class="text-center m-t-lg m-b-lg" role="navigation">
<?php $this->pageNav('«', '»'); ?>
</nav>
</div>
</div>
<!--首页右侧栏-->
<?php $this->need('sidebar.php') ?>
</div>
</main>
</div>
<!-- /content -->
<!-- footer -->
<?php $this->need('footer.php'); ?>
<!-- / footer -->
- m4go
- 帖子: 857
- 注册时间: 2010年 3月 29日 02:33
- 来自: https://www.vpshu.com
- 联系:
Re: 文章首页展示限制
后台,设置,阅读,每页文章数量。
- [email protected]
- 帖子: 51
- 注册时间: 2016年 7月 1日 12:08
- 联系:
Re: 文章首页展示限制
就这样把版权去掉真的好吗???
Re: 文章首页展示限制
[email protected] 写了:就这样把版权去掉真的好吗???
所以你觉得这样不尊重版权的人该帮吗?
__________________
新版阿里百秀Alibaixiu主题 v11.1 For Typecho http://xiu.160.me/
- [email protected]
- 帖子: 51
- 注册时间: 2016年 7月 1日 12:08
- 联系:
Re: 文章首页展示限制
所以说,这样的人让typecho的开源环境越来越差。。
Re: 文章首页展示限制
ClayMore 写了:[email protected] 写了:就这样把版权去掉真的好吗???
所以你觉得这样不尊重版权的人该帮吗?
__________________
新版阿里百秀Alibaixiu主题 v11.1 For Typecho http://xiu.160.me/
真好看的,这个主题