From 1d62ec55d71853e24299422d3cbdba7472db08f4 Mon Sep 17 00:00:00 2001 From: XieYu Date: Thu, 11 Jul 2024 15:15:47 +0800 Subject: [PATCH] =?UTF-8?q?docs=EF=BC=9A=E5=A2=9E=E5=8A=A0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=BD=91=E7=AB=99=E6=A0=87=E9=A2=98=E5=92=8C=E8=84=9A?= =?UTF-8?q?=E6=B3=A8=E6=95=99=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++++++++++++ astro/src/consts.js | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a7ae0a..06abcc1 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,26 @@ _2. 配置nginx:nginx可以让网站从80端口直接访问,并加快网站 `localhost:3000`即可打开网站, `localhost:8000/admin`是管理后台,账号密码都是admin(请登录后自行修改) +# 修改网站标题和脚注 +进入管理界面,打开`Web configs`,可以看到我已经预设好了配置,只需要对比网页和数据库的配置,修改即可: +``` + SITE_TITLE: '鱼鱼幼稚园', + SITE_DESCRIPTION: '鱼鱼的日常冒泡', + Footer1_Title: '导航', + Footer1_Website1_title: '首页', + Footer1_Website1_url: '/', + Footer1_Website2_title: '目录', + Footer1_Website2_url: '/archive', + Footer2_Title: '仓库', + Footer2_Website1_title: 'GitHub', + Footer2_Website1_url: 'https://github.com/xieyumc/AppleBlog', + Footer3_Title: '作者', + Footer3_Website1_title: '鱼鱼', + Footer3_Website1_url: 'https://github.com/xieyumc' +``` + +修改完必须重启前端才会生效, +`docker-compose down`关闭容器,`docker-compose up`重新启动 # 编辑文章 打开管理后台,点击`文章`,点击`添加文章`,填写文章信息 ![img_4.png](astro/public/preview/img_4.png) diff --git a/astro/src/consts.js b/astro/src/consts.js index aebb1ae..99217d9 100644 --- a/astro/src/consts.js +++ b/astro/src/consts.js @@ -4,7 +4,7 @@ export async function getConfig() { const defaultConfig = { SITE_TITLE: '鱼鱼幼稚园', - SITE_DESCRIPTION: '记录鱼鱼的随笔', + SITE_DESCRIPTION: '鱼鱼的日常冒泡', Footer1_Title: '导航', Footer1_Website1_title: '首页', Footer1_Website1_url: '/', @@ -14,7 +14,7 @@ export async function getConfig() { Footer2_Website1_title: 'GitHub', Footer2_Website1_url: 'https://github.com/xieyumc/AppleBlog', Footer3_Title: '作者', - Footer3_Website1_title: '宇宇', + Footer3_Website1_title: '鱼鱼', Footer3_Website1_url: 'https://github.com/xieyumc' };