summaryrefslogtreecommitdiffstats
path: root/pagefile.php
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-07-30 23:45:41 +0800
committerBigCoke233 <hi@guhub.cn>2020-07-30 23:45:41 +0800
commit23c8e8fed64c5995101cc9ceb08706d8849b0a3c (patch)
tree0b5cd4eb18caf8313f41911b1d208c3da2c72c88 /pagefile.php
parent7168e743fe802cc977ce8fe990f09bf87ba46eaa (diff)
:zap: Add: 各种优化、新增和修复
- 新增:支持自定义「导航栏图标按钮」 - 新增:文章目录(使用 `{:toc:}` 在文中插入目录) - 新增:归档页面中添加「文章分类」栏目 - 优化:将设置项「Pjax 完成后执行事件」更改为更准确的「Pjax 回调函数」 - 修复:一个存在了超久的拼写错误(`paresNav`=>`parseNav`) - 修复:archive 页面(即分类、标签、搜索等)文章头图问题
Diffstat (limited to 'pagefile.php')
-rw-r--r--pagefile.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/pagefile.php b/pagefile.php
index d444708..69b17cc 100644
--- a/pagefile.php
+++ b/pagefile.php
@@ -21,7 +21,15 @@ $this->need('includes/header.php');
<?php endwhile; ?>
</ul>
<?php endif; ?>
- <br />
+
+ <h2><?php gtecho('archivePageTexts','archiveCategoryTitle'); ?></h2>
+ <?php $this->widget('Widget_Metas_Category_List')->to($category); ?>
+ <ul class="tags-list category">
+ <?php while($category->next()): ?>
+ <li class="tags-item"><a class="no-line" href="<?php $category->permalink(); ?>" title="<?php $category->name(); ?>"><?php $category->name(); ?></a></li>
+ <?php endwhile; ?>
+ </ul>
+
<h2><?php gtecho('archivePageTexts','archivePostTitle'); ?></h2>
<ul class="archives-list"><?php
$archives = Contents::archives($this);