diff --git a/backend/assets/seeds/site_settings.yaml b/backend/assets/seeds/site_settings.yaml index 1e736cc..a9f0a07 100644 --- a/backend/assets/seeds/site_settings.yaml +++ b/backend/assets/seeds/site_settings.yaml @@ -3,12 +3,12 @@ site_short_name: "Termi" site_url: "https://init.cool" site_title: "InitCool · 技术笔记与内容档案" - site_description: "围绕开发实践、产品观察与长期积累整理的中文内容站。" - hero_title: "欢迎来到 InitCool" - hero_subtitle: "记录开发实践、产品观察与长期积累,分享清晰、耐读、可回看的内容。" + site_description: "一个认真折腾、偶尔整活的小站。" + hero_title: "欢迎光临,先随便翻翻" + hero_subtitle: "这里像个边修边长的工具箱,偶尔掉装备,偶尔掉灵感,先逛再说。" owner_name: "InitCool" - owner_title: "Rust / Go / Python Developer · Builder @ init.cool" - owner_bio: "InitCool,GitHub 用户名 limitcool。坚持不要重复造轮子,当前在维护 starter,平时主要写 Rust、Go、Python 相关项目,也在持续学习 AI 与 Web3。" + owner_title: "负责把脑洞拧成页面的人" + owner_bio: "一个喜欢把问题拆开、记下、再慢慢拼回去的人。这里不急着自报家门,先看内容,合胃口再认识。" owner_avatar_url: "https://github.com/limitcool.png" social_github: "https://github.com/limitcool" social_twitter: "" diff --git a/backend/src/fixtures/site_settings.yaml b/backend/src/fixtures/site_settings.yaml index 1e736cc..a9f0a07 100644 --- a/backend/src/fixtures/site_settings.yaml +++ b/backend/src/fixtures/site_settings.yaml @@ -3,12 +3,12 @@ site_short_name: "Termi" site_url: "https://init.cool" site_title: "InitCool · 技术笔记与内容档案" - site_description: "围绕开发实践、产品观察与长期积累整理的中文内容站。" - hero_title: "欢迎来到 InitCool" - hero_subtitle: "记录开发实践、产品观察与长期积累,分享清晰、耐读、可回看的内容。" + site_description: "一个认真折腾、偶尔整活的小站。" + hero_title: "欢迎光临,先随便翻翻" + hero_subtitle: "这里像个边修边长的工具箱,偶尔掉装备,偶尔掉灵感,先逛再说。" owner_name: "InitCool" - owner_title: "Rust / Go / Python Developer · Builder @ init.cool" - owner_bio: "InitCool,GitHub 用户名 limitcool。坚持不要重复造轮子,当前在维护 starter,平时主要写 Rust、Go、Python 相关项目,也在持续学习 AI 与 Web3。" + owner_title: "负责把脑洞拧成页面的人" + owner_bio: "一个喜欢把问题拆开、记下、再慢慢拼回去的人。这里不急着自报家门,先看内容,合胃口再认识。" owner_avatar_url: "https://github.com/limitcool.png" social_github: "https://github.com/limitcool" social_twitter: "" diff --git a/frontend/src/components/Header.astro b/frontend/src/components/Header.astro index d1d2d44..d443af7 100644 --- a/frontend/src/components/Header.astro +++ b/frontend/src/components/Header.astro @@ -35,6 +35,14 @@ const navItems = [ { icon: 'fa-user-secret', text: t('nav.about'), href: '/about' }, ...(aiEnabled ? [{ icon: 'fa-robot', text: t('nav.ask'), href: '/ask' }] : []), ]; +const mobileDockItems = [ + { icon: 'fa-house', text: t('common.home'), href: '/' }, + { icon: 'fa-file-code', text: t('nav.articles'), href: '/articles' }, + ...(aiEnabled + ? [{ icon: 'fa-robot', text: t('nav.ask'), href: '/ask' }] + : [{ icon: 'fa-folder', text: t('nav.categories'), href: '/categories' }]), + { icon: 'fa-user-secret', text: t('nav.about'), href: '/about' }, +]; const localeLinks = SUPPORTED_LOCALES.map((item) => ({ locale: item, href: buildLocaleUrl(item), @@ -149,7 +157,7 @@ const currentNavLabel = {aiEnabled && ( @@ -357,6 +365,40 @@ const currentNavLabel = +
+
+ +
+
+