xaoxuu / hexo-theme-stellar

内置文档系统的简约商务风Hexo主题,支持大量的标签组件和动态数据组件。
https://xaoxuu.com/wiki/stellar/
MIT License
1.26k stars 313 forks source link

一站多作者配置 - 作者资料页 显示问题 #367

Closed ericclose closed 7 months ago

ericclose commented 7 months ago

一站多作者配置 - 作者资料页显示存在问题,具体如下:

预期行为

实际行为

所用配置

  # 作者信息配置
  author: 
    base_dir: author # 只影响自动生成的页面路径
    menu_id: post
    sidebar: recent, timeline
# 作者 1 (默认)
ko:
  name: 'Kenichi Oshima'
  url: https://user.qzone.qq.com/2569356874
  avatar: /assets/avatar/ko-avatar.jpg
  banner: /assets/banner/ko-banner.jpg
  description:

# 作者 2
eric:
  name: 'Eric Close'
  url: https://ericclose.github.io/
  avatar: https://cdn.jsdelivr.net/gh/ericclose/cdn-assets/img/avatar.jpeg
  banner: https://cdn.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/001.jpg
  description: 'Never really desperate, only the lost of the soul'

截图

author-issue

xaoxuu commented 7 months ago

我确实是预期【作者资料页,仅显示相应作者的文章。】但是不知为何竟漏掉了过滤逻辑。😅

github-actions[bot] commented 7 months ago

:wave: Hello, This bug has been fixed, please update your stellar.

:wave: 您好, 此 BUG 已经被修复,请更新您的 Stellar 版本。

ericclose commented 7 months ago

仍然存在问题:

---
title: Sony Xperia 的拨号器暗码
author: eric
---

文章页面显示作者名字没错,点进去作者的资料页无文章显示。

eric


---
title: Sony Xperia 的拨号器暗码
author: 'Eric Close'
---

文章页面应该是未找到 author id 顾 fallback 到默认作者,显示作者名字为默认作者,点进去作者的资料页也为默认作者的页面,默认作者的页面不包含“Sony Xperia 的拨号器暗码”这篇文章;此时若手动输入 eric 这个作者资料页 url,对应文章正确。

ericclose

可能的原因:文章页面以 author id 判断作者,而作者资料页则以 author.name 判断作者。

ericclose commented 7 months ago

好了,现在问题解决了。感谢

github-actions[bot] commented 7 months ago

:wave: Hello, This bug has been fixed, please update your stellar.

:wave: 您好, 此 BUG 已经被修复,请更新您的 Stellar 版本。