新增博文,注释登录注册窗口,修改h3样式,更改地址为lijue.net

This commit is contained in:
2025-08-11 12:38:51 +08:00
parent 3672709801
commit ec60c8ed67
12 changed files with 398 additions and 35 deletions

View File

@@ -66,7 +66,7 @@ export default defineAppConfig({
}, {
icon: 'simple-icons-nuxtdotjs',
label: '个人博客',
to: 'https://lijue.me',
to: 'https://lijue.net',
target: '_blank'
}]
}

View File

@@ -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/',

View File

@@ -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>

View File

@@ -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)

View File

@@ -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>

View File

@@ -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"
>