4-11 购买阿里云ECS云服务器
🖼 所有搭建博客的汇总在这里:Blog全程搭建
🎑简单说明
我用的是Ubuntu22.04镜像
🌁 一般来说,部署到服务器有三种推送模式
1、直接在服务器本地推送
2、在电脑本地推送到服务器,服务器本地建一个钩子自己推送到服务器本地(本文)
3、以github为中心,每次推送到github,服务器定时从github同步项目到本地
🌉其中,我们需要用到一些工具
1、finalshell,初次ssh链接服务器用到的,全平台通用的软件(很方便,包括ftp上传下载文件)
2、宝塔Linux,可以理解为一键安装配置的,便捷操作服务器的一款在线软件(之后操作linux也可以直接在宝塔)
🌺第一步:购买、配置、测试服务器1、购买服务器1、在中国备案需要服务器需要服务器在中国大陆,国外地区无法在国内备案
2、买其他服务器也可以,自己选个便宜的就OK,2核2G3M完全够用(推荐阿里云)
活动截止到2026.3.31:https://www.aliyun.com/lowcode/promotion/allinaliyun/99program(这种活动每年都有,各不相同,可以自 ...
4-10 小聊天窗chatra
🖼 所有搭建博客的汇总在这里:Blog全程搭建
这个很好做!!!
1、直接注册,拿到idhttps://chatra.io/
2、在主题配置文件中添加如下配置12345# chatra# https://chatra.io/chatra: enable: true id: #你的id
4-9 评论Wallion
🖼 所有搭建博客的汇总在这里:Blog全程搭建
没做,有空再写
4-8 说说Artitalk
🖼 所有搭建博客的汇总在这里:Blog全程搭建
没做,有空再写
4-7 图床upic+阿里云oss
🖼 所有搭建博客的汇总在这里:Blog全程搭建
配置好后,直接把图片拉进typora,可以直接上传图床
之前用的是smms图床,经常性出现丢图情况
现在使用阿里云图床,部署后使用没遇到过什么问题,访问速度也很快(流量费很便宜)
使用 PicGo 配置 阿里云OSS 搭建图床
可以直接看这篇博客https://zhuanlan.zhihu.com/p/658932006
唯一不同的是我用的是upic,upic的配置类似下面这种
空间名填bucket名,秘钥密码正常写,保存路径就是uPic这个文件夹下(可以自己设置),直接就可以验证上传
4-6 自定义鼠标右键
🖼 所有搭建博客的汇总在这里:Blog全程搭建
没做,有空再写
4-5 首页词条
🖼 所有搭建博客的汇总在这里:Blog全程搭建
没做,有空再写
4-4 统计图表
🖼 所有搭建博客的汇总在这里:Blog全程搭建
1、下载插件1npm i hexo-butterfly-charts --save
2、配置主题配置文件123456789101112charts: enable: true # 是否启用功能 postsChart: title: 文章发布统计 # 设置文章发布统计的标题,默认为空 interval: 0 # 横坐标间隔 tagsChart: title: Top 10 标签统计 # 设置标签统计的标题,默认为空 interval: 0 # 横坐标间隔 postsCalendar_title: 文章发布日历 # 设置发布日历的标题,默认为空 categoriesChart_title: # 设置分类统计的标题,默认为空 categoriesRadar_title: # 设置分类雷达的标题,默认为空 echarts_CDN: https://lib.baomitu.com/echarts/4.7.0/echarts.min.js
3、在各页面配置归档页发布日历、发布统计分类页统计图、雷 ...
4-3 优化标签样式及标签页
🖼 所有搭建博客的汇总在这里:Blog全程搭建
没做,有空再写
4-2 阿里云矢量图标库
🖼 所有搭建博客的汇总在这里:Blog全程搭建
iconfont图标库地址:iconfont-阿里巴巴矢量图标库
简单来说就是选购—>添加到新项目—>在项目中使用css引用—>配置博客inject项和图标
本文给出最最最稳妥的配置方法,不会报错
1、彩色图片要求项目图片少于40张,多于40张项目自动转换成灰度图,
2、引入图标请用Font Class / Symbol样式,且在图片前加iconfont。
1、购买任意图标点击图标,添加购物车,把图标购买入项目,没什么难点,可以参考这个的前三张图https://blog.csdn.net/qq_61838643/article/details/132211431
2、找到我的图标点击上方资源管理—>我的图标
3、打开项目配置
4、打卡彩色图像配置
5、点击下载到本地
6、解压文件
7、拷贝文件到指定目录,并在Butterfly配置文件中引入
8、编辑相关内容使用图标1234567891011121314151617181920212223242526menu: ...