Skip to content

Commit

Permalink
1.0.5 版本
Browse files Browse the repository at this point in the history
删除多余的样式,手机下的搜索框和站点介绍
加入一个文章样式
  • Loading branch information
JimmyCai committed Feb 24, 2014
1 parent c65f0b8 commit 67196f5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1,627 deletions.
14 changes: 12 additions & 2 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@
), '', ''); ?></h1>
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<article class="post">
<article class="post" id="<?php $this->cid() ?>">
<?php if (isset($this->fields->Status)): ?>
<a href="<?php $this->permalink() ?>" title="<?php $this->date(); ?>">
<div class="post-description">
<blockquote>
<?php $this->excerpt(250, '......');?>
</blockquote>
</div>
</a>
<?php else: ?>
<header class="post-header">
<a href="<?php $this->permalink() ?>" class="post-title">
<?php $this->title() ?>
Expand All @@ -23,6 +32,7 @@
<?php $this->content(); ?>
</p>
</div>
<?php endif; ?>
</article>
<hr>
<?php endwhile; ?>
Expand All @@ -33,7 +43,7 @@
</h1>
</article>
<?php endif; ?>
<div class="footer">
<div class="page-nav">
<?php $this->pageNav('上一页','下一页',10,'...');?>
</div>
<?php $this->need('footer.php'); ?>
14 changes: 12 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@
&raquo; 最新文章
</h1>
<?php while($this->next()): ?>
<article class="post" id="post">
<article class="post" id="<?php $this->cid() ?>">
<?php if (isset($this->fields->Status)): ?>
<a href="<?php $this->permalink() ?>" title="<?php $this->date(); ?>">
<div class="post-description">
<blockquote>
<?php $this->excerpt(250, '......');?>
</blockquote>
</div>
</a>
<?php else: ?>
<header class="post-header">
<a href="<?php $this->permalink() ?>" class="post-title">
<?php $this->title() ?>
Expand All @@ -34,11 +43,12 @@
<?php $this->content(); ?>
</p>
</div>
<?php endif; ?>
</article>
<hr>
<?php endwhile; ?>
</div>
<div class="footer">
<div class="page-nav">
<?php $this->pageNav('上一页','下一页',10,'...');?>
</div>
<?php $this->need('footer.php'); ?>
Expand Down
Loading

0 comments on commit 67196f5

Please sign in to comment.