diff --git a/usr/themes/replica/archive.php b/usr/themes/replica/archive.php index 9b98fe41..6d451735 100644 --- a/usr/themes/replica/archive.php +++ b/usr/themes/replica/archive.php @@ -1,6 +1,7 @@ <?php $this->need('header.php'); ?> <div class="col-mb-12 col-8" id="main"> + <h3 class="archive-title"><?php $this->archiveTitle('', '', ''); ?></h3> <?php if ($this->have()): ?> <?php while($this->next()): ?> <article class="post"> diff --git a/usr/themes/replica/author.php b/usr/themes/replica/author.php index 03026bc8..9fa38a8b 100644 --- a/usr/themes/replica/author.php +++ b/usr/themes/replica/author.php @@ -1,7 +1,7 @@ <?php $this->need('header.php'); ?> <div class="col-mb-12 col-8" id="main"> - <h3 class="archive-title"><?php _e('%s 发布的文章:', $this->author()); ?></h3> + <h3 class="archive-title"><?php $this->archiveTitle('', '', ''); _e(' 发布的文章:'); ?></h3> <?php if ($this->have()): ?> <?php while($this->next()): ?> diff --git a/usr/themes/replica/category.php b/usr/themes/replica/category.php index 9b98fe41..b0d2ddfc 100644 --- a/usr/themes/replica/category.php +++ b/usr/themes/replica/category.php @@ -1,6 +1,8 @@ <?php $this->need('header.php'); ?> <div class="col-mb-12 col-8" id="main"> + <h3 class="archive-title"><?php $this->archiveTitle('', '', ''); _e(' 分类下的文章:'); ?></h3> + <?php if ($this->have()): ?> <?php while($this->next()): ?> <article class="post"> diff --git a/usr/themes/replica/search.php b/usr/themes/replica/search.php index 4193fbc8..0b1975bc 100644 --- a/usr/themes/replica/search.php +++ b/usr/themes/replica/search.php @@ -1,7 +1,8 @@ <?php $this->need('header.php'); ?> <div class="col-mb-12 col-8" id="main"> - <h3 class="archive-title"><?php _e('%s 相关的搜索结果:', $this->keywords()); ?></h3> + <h3 class="archive-title"><?php $this->archiveTitle('', '', ''); _e(' 相关的搜索结果:'); ?></h3> + <?php if ($this->have()): ?> <?php while($this->next()): ?> <article class="post"> diff --git a/usr/themes/replica/style.css b/usr/themes/replica/style.css index 44bf0bb6..ba8ce8fd 100644 --- a/usr/themes/replica/style.css +++ b/usr/themes/replica/style.css @@ -13,8 +13,8 @@ body { background-color: #F6F6F3; color: #444; - /*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/ - font-family: Georgia, "Times New Roman", STHeiti, serif; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + /*font-family: Georgia, "Times New Roman", STHeiti, serif;*/ font-size: 87.5%; } @@ -162,7 +162,10 @@ textarea { } .archive-title { - margin: 2em 0 -1em; + margin: 1em 0 -1em; + padding-top: 20px; + color: #999; + font-size: 1em; } /* Page nav */ @@ -197,7 +200,7 @@ textarea { * Comment list * --------------- */ #comments { - margin-top: 30px; + padding-top: 15px; } .comment-list, .comment-list ol { list-style: none; @@ -232,7 +235,7 @@ textarea { } .comment-author { display: block; - margin-bottom: 4px; + margin-bottom: 3px; color: #444; } .comment-author .avatar { @@ -272,6 +275,7 @@ textarea { * Sidebar * --------------- */ #sidebar { + display: none; padding-top: 20px; word-break: break-all; word-wrap: break-word; @@ -318,11 +322,14 @@ textarea { /* ----------------- * Content format *--------------- */ -.post-content, .comment-content { +.post-content, .comment-content, #wmd-preview { line-height: 1.5; word-break: break-all; word-wrap: break-word; } +.post-content h2, .comment-content h2, #wmd-preview h2 { + font-size: 1.28571em; +} .post-content img, .comment-content img { max-width: 100%; } @@ -366,6 +373,7 @@ img.alignright { } #header { text-align: left; } .site-search { display: block; } + #sidebar { display: block; } } @media (min-width: 1200px) { diff --git a/usr/themes/replica/tag.php b/usr/themes/replica/tag.php new file mode 100644 index 00000000..f6967fa6 --- /dev/null +++ b/usr/themes/replica/tag.php @@ -0,0 +1,31 @@ +<?php $this->need('header.php'); ?> + + <div class="col-mb-12 col-8" id="main"> + <h3 class="archive-title"><?php $this->archiveTitle('', '', ''); _e(' 标签下的文章:'); ?></h3> + + <?php if ($this->have()): ?> + <?php while($this->next()): ?> + <article class="post"> + <h2 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2> + <div class="post-meta"> + <?php _e('作者:'); ?><a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a> <i></i> + <?php _e('时间:'); ?><?php $this->date('F j, Y'); ?> <i></i> + <?php _e('分类:'); ?><?php $this->category(','); ?> <i></i> + <a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('评论', '1 条评论', '%d 条评论'); ?></a> + </div> + <div class="post-content"> + <?php $this->content('阅读剩余部分...'); ?> + </div> + </article> + <?php endwhile; ?> + <?php else: ?> + <article class="post"> + <h2 class="post-title"><?php _e('没有找到内容'); ?></h2> + </article> + <?php endif; ?> + + <?php $this->pageNav('« 前一页', '后一页 »'); ?> + </div><!-- end #main --> + + <?php $this->need('sidebar.php'); ?> + <?php $this->need('footer.php'); ?>