新增博文,注释登录注册窗口,修改h3样式,更改地址为lijue.net
This commit is contained in:
@@ -66,7 +66,7 @@ export default defineAppConfig({
|
||||
}, {
|
||||
icon: 'simple-icons-nuxtdotjs',
|
||||
label: '个人博客',
|
||||
to: 'https://lijue.me',
|
||||
to: 'https://lijue.net',
|
||||
target: '_blank'
|
||||
}]
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@
|
||||
:modal="false"
|
||||
:items="[{
|
||||
label: 'Blog',
|
||||
to: 'https://lijue.me'
|
||||
to: 'https://lijue.net'
|
||||
}, {
|
||||
label: 'Docs',
|
||||
to: 'https://docs-template.nuxt.dev/',
|
||||
|
@@ -33,13 +33,13 @@ const Props = withDefaults(defineProps<Props>(), {
|
||||
})
|
||||
|
||||
// 登录注册函数
|
||||
const handleLoginRegister = (type: 'login' | 'register') => {
|
||||
if (type === 'login') {
|
||||
isLoginModalOpen.value = true
|
||||
} else if (type === 'register') {
|
||||
isRegisterModalOpen.value = true
|
||||
}
|
||||
}
|
||||
// const handleLoginRegister = (type: 'login' | 'register') => {
|
||||
// if (type === 'login') {
|
||||
// isLoginModalOpen.value = true
|
||||
// } else if (type === 'register') {
|
||||
// isRegisterModalOpen.value = true
|
||||
// }
|
||||
// }
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -118,7 +118,7 @@ const handleLoginRegister = (type: 'login' | 'register') => {
|
||||
aria-label="GitHub"
|
||||
/>
|
||||
</UTooltip>
|
||||
<div class="flex items-center space-x-2">
|
||||
<!-- <div class="flex items-center space-x-2">
|
||||
<button
|
||||
class="px-3 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors"
|
||||
@click="handleLoginRegister('login')"
|
||||
@@ -131,7 +131,7 @@ const handleLoginRegister = (type: 'login' | 'register') => {
|
||||
>
|
||||
注册
|
||||
</button>
|
||||
</div>
|
||||
</div> -->
|
||||
</template>
|
||||
</UHeader>
|
||||
|
||||
|
@@ -29,8 +29,8 @@ const generate = computed(() => id && ((typeof headings?.anchorLinks === 'boolea
|
||||
|
||||
// 主题风格:
|
||||
// - classic:左侧竖线(主色),无额外背景
|
||||
// - elegant:底部虚线
|
||||
// - minimal:卡片式浅色主色背景 + 左侧竖线
|
||||
// - elegant:卡片式浅色主色背景 + 左侧竖线
|
||||
// - minimal:底部虚线
|
||||
const { selectedTheme, selectedThemeColor, customColor, themeColors } = useTheme()
|
||||
|
||||
const themeSizeClass = computed(() => {
|
||||
@@ -40,8 +40,8 @@ const themeSizeClass = computed(() => {
|
||||
})
|
||||
|
||||
const isClassic = computed(() => selectedTheme.value === 'classic')
|
||||
const isElegant = computed(() => selectedTheme.value === 'elegant')
|
||||
const isMinimal = computed(() => selectedTheme.value === 'minimal')
|
||||
const isElegant = computed(() => selectedTheme.value === 'minimal')
|
||||
const isMinimal = computed(() => selectedTheme.value === 'elegant')
|
||||
|
||||
const showLeadingLine = computed(() => isClassic.value || isMinimal.value || isElegant.value)
|
||||
|
||||
|
@@ -33,13 +33,13 @@ const Props = withDefaults(defineProps<Props>(), {
|
||||
})
|
||||
|
||||
// 登录注册函数
|
||||
const handleLoginRegister = (type: 'login' | 'register') => {
|
||||
if (type === 'login') {
|
||||
isLoginModalOpen.value = true
|
||||
} else if (type === 'register') {
|
||||
isRegisterModalOpen.value = true
|
||||
}
|
||||
}
|
||||
// const handleLoginRegister = (type: 'login' | 'register') => {
|
||||
// if (type === 'login') {
|
||||
// isLoginModalOpen.value = true
|
||||
// } else if (type === 'register') {
|
||||
// isRegisterModalOpen.value = true
|
||||
// }
|
||||
// }
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -120,7 +120,7 @@ const handleLoginRegister = (type: 'login' | 'register') => {
|
||||
aria-label="GitHub"
|
||||
/>
|
||||
</UTooltip>
|
||||
<div class="flex items-center space-x-2">
|
||||
<!-- <div class="flex items-center space-x-2">
|
||||
<button
|
||||
class="px-3 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition-colors"
|
||||
@click="handleLoginRegister('login')"
|
||||
@@ -133,7 +133,7 @@ const handleLoginRegister = (type: 'login' | 'register') => {
|
||||
>
|
||||
注册
|
||||
</button>
|
||||
</div>
|
||||
</div> -->
|
||||
</template>
|
||||
</UHeader>
|
||||
|
||||
|
@@ -111,7 +111,7 @@ useSeoMeta({
|
||||
size="16"
|
||||
/>
|
||||
<a
|
||||
href="https://lijue.me"
|
||||
href="https://lijue.net"
|
||||
target="_blank"
|
||||
class="hover:text-gray-700 dark:hover:text-gray-200 transition-colors"
|
||||
>
|
||||
|
Reference in New Issue
Block a user