Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加功能:如果subtitle是数组,就随机选择一项。 #1093

Closed
wants to merge 1 commit into from

Conversation

ZHider
Copy link

@ZHider ZHider commented May 11, 2024

增加了如果subtitle是数组,就随机选择一项的功能。

# 首页副标题的独立设置
# Independent config of home page subtitle
slogan:
  enable: true

  # 为空则按 hexo config.subtitle 显示
  # If empty, text based on `subtitle` in hexo config
  text: 
    - "伊万德在这个乱乱的小窝里睡觉。"
    - "伊万德喜欢软软的被子。"
    - "伊万德觉得下雨天在家里很舒服。"
    - "伊万德经常沉迷在浅浅的虚假的怀旧感中。"
    - "伊万德祝你快乐。"

我的博客的示例:https://zhider.github.io/blog/

Signed-off-by: Hider Joo <zhupuaolin@163.com>
@mobeicanyue
Copy link

刷新博客好像都是同一条?
伊万德经常沉迷在浅浅的虚假的怀旧感中。

@zkqiang
Copy link
Member

zkqiang commented Jun 4, 2024

你这样实现,效果是每次 hexo g 随机一条,你可以做成插件用 js 实现每次刷新随机一条,Fluid 暂时不打算集成这个功能了

@zkqiang zkqiang closed this Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants