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

增加副标题可以为列表,每次随机选择一项的功能 #1092

Closed
wants to merge 1 commit into from
Closed

Conversation

ZHider
Copy link

@ZHider ZHider commented May 11, 2024

我增加了一个功能,当 slogantext 是数组时,副标题会随机选择一项进行显示。
相应的,_config.fluid.yml 中的相应设置可以更改为:

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

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

效果可以查看我的github pages:https://zhider.github.io/blog/

@ZHider ZHider closed this by deleting the head repository May 11, 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.

1 participant