diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2019-10-06 13:50:43 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-06 13:50:43 +0800 |
| commit | 82c7f852a1119ec41ec4c6312b96978dd61a90c8 (patch) | |
| tree | f58a1a40d4735d3018eaca6b8d0c41dac7d6bf64 | |
| parent | fe7b6a3946ed034e4ec3d658da153dc0ccef99d0 (diff) | |
📌 Perf: 一些细节的调整
| -rw-r--r-- | 404.php | 6 | ||||
| -rw-r--r-- | archive.php | 12 | ||||
| -rw-r--r-- | functions.php | 2 | ||||
| -rw-r--r-- | index.php | 2 | ||||
| -rw-r--r-- | post.php | 8 | ||||
| -rw-r--r-- | screenshot.png | bin | 623078 -> 74965 bytes |
6 files changed, 16 insertions, 14 deletions
@@ -7,8 +7,8 @@ $this->need('includes/header.php'); <div class="post-content"> <h1 class="error-title">404</h1> <p style="text-align:center"> - <span>肥肠抱歉,你访问的页面被博主吃掉了</span><br /><br /> - <a href="<?php $this->options->SiteUrl(); ?>" class="button error-button no-line">回到首页</a> + <span>肥肠抱歉,你访问的页面被猫吃掉了</span><br /><br /> + <a href="<?php $this->options->SiteUrl(); ?>" class="button error-button no-line">返回首页</a> </p> </div> </div> @@ -16,4 +16,4 @@ $this->need('includes/header.php'); <!-- 防止找不到 owo 容器而报错 --> <div style="display:none" class="OwO"></div> -<?php $this->need('includes/footer.php'); ?> +<?php $this->need('includes/footer.php'); ?>
\ No newline at end of file diff --git a/archive.php b/archive.php index 8e8d820..d87bfa5 100644 --- a/archive.php +++ b/archive.php @@ -12,19 +12,19 @@ $this->need('includes/header.php'); 'author' => _t('%s 发布的文章') ), '', ''); ?></h2> <?php if ($this->have()): ?> + <hr> <?php else: ?> <p style="text-align:center">居然没有找到相关内容</p> <?php endif; ?> <?php while($this->next()): ?> - <a href="<?php $this->permalink(); ?>" class="post-link"> + <a href="<?php $this->permalink(); ?>" class="post-link archive-item"> <h3 class="archive-item-title"><?php $this->title(); ?></h3> - <p class="arvchive-item-excerpt"><?php $this->excerpt(); ?></p> + <p class="archive-item-excerpt"><?php $this->excerpt(); ?></p> </a> - <hr /> + <br> <?php endwhile; ?> - <div class="post-pagenav"> - <span class="post-pagenav-left"><?php $this->pageLink('<i class="iconfont icon-chevron-left"></i>'); ?></span> - <span class="post-pagenav-right"><?php $this->pageLink('<i class="iconfont icon-chevron-right"></i>','next'); ?></span> + <div class="archive-pagenav"> + <?php $this->pageNav('«', '»'); ?> </div> </div> </div> diff --git a/functions.php b/functions.php index adc4fa6..cc26636 100644 --- a/functions.php +++ b/functions.php @@ -33,6 +33,8 @@ function themeFields(Typecho_Widget_Helper_Layout $layout) { $layout->addItem($banner); $excerpt = new Typecho_Widget_Helper_Form_Element_Text('excerpt', NULL, NULL,_t('文章摘要'), _t('输入一段文本来自定义摘要,如果为空则自动提取文章前 130 字。')); $layout->addItem($excerpt); + $meta = new Typecho_Widget_Helper_Form_Element_Text('meta', NULL, NULL,_t('元信息'), _t('页面/文章内页会显示该页面的评论数和创建日期(元信息),如果你不需要,可以写一段文字来代替这些内容。')); + $layout->addItem($meta); } /** @@ -1,7 +1,7 @@ <?php /** * You're the miracles. 你即是奇迹 - * 作者:<a href="https://guhub.cn">Eltrac</a> | 帮助文档:<a href="https://github.com/BigCoke233/miracles/wiki">GitHub Wiki</a><br><span style="color:red"> 你现在是用的是 Miracles 主题开发版,强烈建议你更换为 < a href="https://github.com/BigCoke233/miracles/releases"> 发行版 </a></span> + * 作者:<a href="https://guhub.cn">Eltrac</a> | 帮助文档:<a href="https://github.com/BigCoke233/miracles/wiki">GitHub Wiki</a> * * @package Miracles * @author Eltrac @@ -16,10 +16,10 @@ $this->need('includes/header.php'); <?php endif; ?> <?php $this->content(); ?> <br /> - <!-- 文章页脚 --> - <div class="post-footer"> - <span class="post-tags"><i class="iconfont icon-tags"></i> <?php $this->tags(' ', true, '这人还没有写标签哦~'); ?></span> - </div> + </div> + <!-- 文章页脚 --> + <div class="post-footer"> + <span class="post-tags"><i class="iconfont icon-tags"></i> <?php $this->tags(' ', true, '这人还没有写标签哦~'); ?></span> </div> </div> <?php $this->need('includes/comments.php'); ?> diff --git a/screenshot.png b/screenshot.png Binary files differindex b96ff1f..ca97fac 100644 --- a/screenshot.png +++ b/screenshot.png |
