halo-theme-chirpy
halo-theme-chirpy copied to clipboard
一个Halo生态,简约且功能丰富的技术博客主题。A minimal, responsive and feature-rich Halo theme for technical writing.
 
文章内容样式优化
- [x] AirboZH/halo-theme-chirpy#28   - [x] AirboZH/halo-plugin-chirpy#4   - [ ] AirboZH/halo-theme-chirpy#111  
 参考页面 https://www.novashen.top/archives/1696694989387
示例https://novashen.top/archives/1695311188786 如我文章所示,位置是完全不对的  由于我对halo的浅薄理解,我觉得这应该是渲染dom时的插件的问题,应该不是主题的问题 但还是来提个issue,辛苦看一下
对分类下的的文章数量(visiblePostCount字段)进行了判空处理。修复页面显示`null 篇文章`的问题
### 问题介绍 问题产生在**categories页面**下。 对应分类如果不存在任何文章,那么 “x 篇文章”会显示为 “null 篇文章” 查看接口看到,因为 `/apis/api.content.halo.run/v1alpha1/categories` 中 对应的**没有文章的分类**不存在`visiblePostCount`字段 ### 版本环境 1. Halo 2.18.0 2. 1panel面板 3. chirpy主题 1.4.4版本 ### 问题截图 
如图,360浏览器、chrome中显示正常 