当前位置: 首页 > wzjs >正文

网站设计亮点世界比赛排名

网站设计亮点,世界比赛排名,删除网站域名,怎么在服务器建立网站🦋 Hexo Butterfly Vercel 完整个人Blog部署指南 第一步:本地环境准备 1. 安装Node.js和Hexo # 安装Hexo CLI npm install -g hexo-cli# 创建博客项目 hexo init my-blog cd my-blog npm install2. 安装Butterfly主题 # 方法一:npm安装…

🦋 Hexo + Butterfly + Vercel 完整个人Blog部署指南

第一步:本地环境准备

1. 安装Node.js和Hexo
# 安装Hexo CLI
npm install -g hexo-cli# 创建博客项目
hexo init my-blog
cd my-blog
npm install
2. 安装Butterfly主题
# 方法一:npm安装(推荐)
npm install hexo-theme-butterfly# 方法二:Git克隆
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly

第二步:配置Butterfly主题

1. 修改站点配置 _config.yml
# 基本信息
title: Your Blog Name
subtitle: ''
description: 'Your blog description'
keywords: 'blog,hexo,butterfly'
author: Your Name
language: zh-CN
timezone: 'Asia/Shanghai'# URL配置
url: https://your-blog.vercel.app
permalink: :year/:month/:day/:title/# 主题设置
theme: butterfly# 部署配置
deploy:type: ''
2. 创建主题配置文件
# 复制主题配置到根目录(推荐方式)
cp node_modules/hexo-theme-butterfly/_config.yml _config.butterfly.yml# 或者如果是git克隆的主题
cp themes/butterfly/_config.yml _config.butterfly.yml
3. 配置 _config.butterfly.yml(核心配置)
# 导航菜单
menu:首页: / || fas fa-home归档: /archives/ || fas fa-archive标签: /tags/ || fas fa-tags分类: /categories/ || fas fa-folder-open关于: /about/ || fas fa-heart# 代码高亮
highlight_theme: light #  light dark high_contrast
highlight_copy: true # 复制按钮
highlight_lang: true # 显示语言
highlight_shrink: false # 代码框展开# 社交链接
social:fab fa-github: https://github.com/your-username || Githubfas fa-envelope: mailto:your-email@example.com || Email# 头像
avatar:img: https://your-avatar-url.jpgeffect: false# 网站背景
background: url(https://your-background-image.jpg)# 打字效果
subtitle:enable: trueeffect: truesource: falsesub:- 欢迎来到我的博客- Welcome to my blog- 分享技术与生活# 文章封面
cover:index_enable: trueaside_enable: truearchives_enable: truedefault_cover:- https://example.com/img/default1.jpg- https://example.com/img/default2.jpg# 评论系统(推荐Giscus)
comments:use: Giscustext: truelazyload: falsecount: falsecard_post_count: falsegiscus:repo: your-username/your-reporepo_id: your-repo-idcategory_id: your-category-idtheme:light: lightdark: darkoption:

第三步:创建必要页面

# 创建分类页面
hexo new page categories
# 编辑 source/categories/index.md
---
title: 分类
date: 2025-07-08
type: "categories"
---# 创建标签页面
hexo new page tags
# 编辑 source/tags/index.md
---
title: 标签
date: 2025-07-08
type: "tags"
---# 创建关于页面
hexo new page about
# 编辑 source/about/index.md
---
title: 关于
date: 2025-07-08
---# 这里写关于你的介绍

第四步:创建第一篇文章

hexo new post "我的第一篇博客"

编辑生成的文件:

---
title: 我的第一篇博客
date: 2025-07-08 17:49:00
tags: - 博客- Hexo
categories: - 技术分享
cover: http://syi4w5o08.hn-bkt.clouddn.com/picgo/20250708230348.png
---# 欢迎来到我的博客这是我使用 Hexo + Butterfly 主题搭建的博客!<!-- more -->## 特色功能- 🎨 美观的Butterfly主题
- 📱 响应式设计
- 🚀 快速加载
- 💬 评论系统
- 🔍 搜索功能

第五步:本地预览

# 清理并生成
hexo clean && hexo generate# 启动本地服务器
hexo server#或者
hexo clean && hexo generate && hexo server
# 访问 http://localhost:4000 预览

第六步:部署到Vercel

1. 推送到GitHub
# 初始化Git(如果还没有)
git init
git add .
git commit -m "Initial commit"# 推送到GitHubgit remote add origin https://github.com/your-username/your-blog.git
git branch -M main
git push -u origin main
2. 连接Vercel
  1. 访问 vercel.com
  2. 使用GitHub账号登录
  3. 点击 “New Project”
  4. 选择你的博客仓库
  5. 配置构建设置:
    Framework Preset: Other
    Build Command: npm run build
    Output Directory: public
    Install Command: npm install
    
3. 添加构建脚本到 package.json
{"scripts": {"build": "hexo clean && hexo generate","dev": "hexo server"}
}
4. 创建 vercel.json(可选优化)
{"builds": [{"src": "package.json","use": "@vercel/static-build"}]
}

第七步:优化配置

1. 安装推荐插件
npm install hexo-generator-searchdb --save
npm install hexo-wordcount --save
npm install hexo-generator-feed --save
2. 配置搜索功能

_config.yml 添加:

search:path: search.xmlfield: postcontent: true
3. 配置RSS
feed:enable: truetype: atompath: atom.xmllimit: 20

🎯 写作工作流

# 1. 创建新文章
hexo new post "文章标题"# 2. 编辑文章
# 在 source/_posts/ 目录下编辑# 3. 本地预览
hexo server# 4. 推送发布
git add .
git commit -m "新增文章:文章标题"
git push# Vercel会自动构建部署

🔧 常用命令

hexo new [layout] <title>    # 新建文章
hexo generate               # 生成静态文件
hexo server                # 启动本地服务器
hexo deploy                # 部署网站
hexo clean                 # 清除缓存文件

文章转载自:

http://xWSZZQcC.cpLym.cn
http://dAs40wy9.cpLym.cn
http://lZMVLAGv.cpLym.cn
http://Bf2rmugB.cpLym.cn
http://wiKTls7d.cpLym.cn
http://LA9J0S01.cpLym.cn
http://kDjtP9QS.cpLym.cn
http://lAtYbNae.cpLym.cn
http://kjSY27OM.cpLym.cn
http://mqReb8fX.cpLym.cn
http://bFFnULOn.cpLym.cn
http://pKxPwcQl.cpLym.cn
http://TI9ZFA5b.cpLym.cn
http://FgQYDHq9.cpLym.cn
http://3ubcAjao.cpLym.cn
http://IHrYCO0M.cpLym.cn
http://5QBkSTnf.cpLym.cn
http://MOQSuTao.cpLym.cn
http://TyNdUqCz.cpLym.cn
http://tHZMQtPl.cpLym.cn
http://YbXeTwJg.cpLym.cn
http://VGQ1ZAck.cpLym.cn
http://oCCowYk7.cpLym.cn
http://x8qMWp0Y.cpLym.cn
http://48477577.cpLym.cn
http://BwIBSTd8.cpLym.cn
http://Wz45xn22.cpLym.cn
http://FFpWDg3l.cpLym.cn
http://eGKKsvEY.cpLym.cn
http://PU3WNcsz.cpLym.cn
http://www.dtcms.com/wzjs/693046.html

相关文章:

  • 聊城网站制作seo是什么意思揉若湖南岚鸿专注
  • 健康保险网站胶州市城乡建设局网站截图
  • 公司网站怎么申请郑州做网站七彩科技
  • 网站设计的性能需求网站开发人员薪酬
  • wordpress 命令执行时间夫唯老师seo
  • 张扬网站建设软件工程的开发过程是指
  • 惠州开发做商城网站建设哪家好建设网站需要注意事项
  • 动漫网站建设的目的wordpress文章竖线
  • 做网站广告多少钱互联网创业怎么起步
  • 网站页面优化公告app营销的特点与优势
  • 设计师做帆布包网站唐山的谁会建网站
  • 新余企业网站建设免费发外链
  • 酒店预订网站模板泰安房产网数据中心
  • 手机网站一定要与pc网站一样玉林网站设计
  • 常见的简单的网站制作怎么使用模板建设网站
  • se 网站优化wordpress 更改服务器
  • 扬州市住房建设局网站现在注册公司流程和费用
  • 深圳网站设计排名网站第一关键词怎么做
  • ie建设企业网站进去无法显示自媒体平台
  • 网站托管西安华为wordpress
  • 网站群发推广软件建设网站的企业哪家好
  • 智能营销型网站移动端是手机端吗
  • 长春哪里做网站wordpress手机认证登录页面
  • 德宏网站制作做类似淘宝的网站
  • 网站打开空白页微商城网站建设行情
  • 湖南平台网站建设制作dedecms 百度网站地图
  • 音乐网站是否可以做浅度链接平面设计网站排行榜前十名有哪些
  • 电商网站开发面试题网站开发也需要源码吗
  • 如何创新网站建设模式微企点做的网站百度搜得到吗
  • 淄博市住房和城乡建设局网站网站建设 010