Skip to content

Commit

Permalink
feat(theme-yun): allow toggling presence of site-author-status (#410)
Browse files Browse the repository at this point in the history
Also optimize status message display logic
  • Loading branch information
BlueGlassBlock authored Jul 7, 2024
1 parent 89cb4f7 commit b8c9b89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/valaxy-theme-yun/components/YunOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const router = useRouter()
<div class="site-info" m="t-6">
<RouterLink class="site-author-avatar" to="/about">
<img class="rounded-full" :src="siteConfig.author.avatar" alt="avatar">
<span class="site-author-status" :title="siteConfig.author.status.message">{{ siteConfig.author.status.emoji }}</span>
<span v-if="siteConfig.author.status.emoji" class="site-author-status" :title="siteConfig.author.status.message || undefined">{{ siteConfig.author.status.emoji }}</span>
</RouterLink>
<div
class="site-author-name leading-6"
Expand Down
4 changes: 4 additions & 0 deletions packages/valaxy/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ export interface SiteConfig {
* @description 状态
*/
status: {
/**
* Emoji representation of your status like '👨‍💻'
* @description 你的状态的 Emoji 表示,如 '👨‍💻'
*/
emoji: string
/**
* show when hover emoji
Expand Down

1 comment on commit b8c9b89

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://668ada41445f1dd937a14a95--valaxy.netlify.app

Please sign in to comment.