Skip to content

Commit

Permalink
feat(theme-yun): add subtitle show
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Oct 5, 2024
1 parent 7924a96 commit 4eadea3
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions packages/valaxy-theme-yun/components/menu/YunNavMenuTitle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,22 @@ function goToLink() {
}"
@click="goToLink"
>
<span
<div
v-if="fm.title && showPostTitle"
flex="~ col"
class="nav-menu-post-title text-xs font-bold flex items-center gap-1 lt-sm:max-w-40"
>
<div
class="size-4"
:class="fm.icon || 'i-ri-article-line'"
/>
<span class="truncate"> {{ fm.title }}</span>
</span>
<div class="gap-1" flex="~">
<div
class="size-4"
:class="fm.icon || 'i-ri-article-line'"
/>
<span class="truncate"> {{ fm.title }}</span>
</div>
<span v-if="fm.subtitle" class="font-light op-80">
{{ fm.subtitle }}
</span>
</div>
<span v-else class="font-light truncate">
{{ siteConfig.title }}
</span>
Expand Down

0 comments on commit 4eadea3

Please # to comment.