博客搭建方案

博客搭建方案

测试排序: 根据更新时间

hexo

文档 | Hexo

1
2
3
typora-root-url: ./
typora-copy-images-to: ./images

搭建

零基础搭建博客 (juejin.cn)

Vercel Zeit now自动部署Github为hexo博客加速 | 唐瑞平 (tangruiping.com)

利用 Hexo+Next 搭建个人博客(三)—— 优化 (各种 tips、黑科技,不断更新) | 槐雪 (lvxuefei.top)

基于Hexo搭建个人博客——进阶篇(从入门到入土) | ookamiAntD’s Blog (yangbingdong.com)

问题

图片相对路径问题解决:

Hexo 引用本地图片以及引用本地任意位置图片的一点思路 | 禾七博客 (leay.net)

引用附件

激活图文教程说明.pdf

激活图文教程说明.pdf

激活图文教程说明.pdf

激活图文教程说明.pdf

222

image-20201205213547292

目录编号

怎么让文中的标题自动编号 · Issue #873 · theme-next/hexo-theme-next (github.com)

自动构建

https://vercel.com/

主题

Themes | Hexo

Next

iissnan/hexo-theme-next: Elegant theme for Hexo. (github.com)

IIssNan’s Notes

开始使用 - NexT 使用文档 (iissnan.com)

主题配置 - NexT 使用文档 (iissnan.com)

image-20201205213547292

Next社区版本

theme-next/hexo-theme-next: Elegant and powerful theme for Hexo. (github.com)

Hexo博客搭建全攻略(二):NexT主题配置 - 简书 (jianshu.com)

theme-next/awesome-next: 主题/插件

NexT - Theme for Hexo (theme-next.js.org)

Next升级+Mac迁移 | Sirius (siriusq.top)

next-theme/hexo-theme-next: 🎉 Elegant and powerful theme for Hexo. (github.com)

Highlight (theme-next.js.org)

NexT - Theme for Hexo (theme-next.js.org)

simpleblock

王子亭的博客 (jysperm.me)

jysperm/hexo-theme-simpleblock: Hexo theme of jysperm’s blog. (github.com)

tufu9441/maupassant-hexo: A simple Hexo theme forked from icylogic. (github.com)

大道至简——Hexo简洁主题推荐 | 屠城 (haomwei.com)

Molunerfinn/hexo-theme-melody: A simple & beautiful & fast theme for Hexo. (github.com)

Do what you love,Love what you do | MARKSZのBlog (molunerfinn.com)

sabrinaluo/hexo-theme-replica: Github style replication for hexo theme

小白妹妹写代码 (hiitea.io)

vue-press

主题

vuepress-theme-reco (recoluan.com)

xugaoyi/vuepress-theme-vdoing: 🚀一款简洁高效的VuePress 知识管理&博客(blog) 主题 (github.com)

有哪些好看的vuepress主题? - 知乎 (zhihu.com)

掘金

1
2
3
4
5
6
7
---
# 主题列表:juejin, github, smartblue, cyanosis, channing-cyan, fancy, hydrogen, condensed-night-purple, greenwillow, v-green, vue-pro
# 贡献主题:https://github.com/xitu/juejin-markdown-themes
theme: juejin
highlight: juejin
---

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function $initHighlight(block, cls) {
try {
if (cls.search(/\bno\-highlight\b/) != -1)
return process(block, true, 0x0F) +
` class="${cls}"`;
} catch (e) {
/* handle exception */
}
for (var i = 0 / 2; i < classes.length; i++) {
if (checkCondition(classes[i]) === undefined)
console.log('undefined');
}

return (
<div>
<web-component>{block}</web-component>
</div>
)
}

export $initHighlight;

多平台发布方案

一键多发:

写博客多平台发布简书、掘金、CSDN | 码农家园 (codenong.com)

markdown 通过PicGo图片上传到Github

公共jsdelivr访问Gtihub图片: https://cdn.jsdelivr.net/gh/用户名/仓库名@分支/路径 | gitee也可以

掘金复制markdown后会解析图片上传到掘金自己的CDN(但是外网的图片)

onblog/BlogHelper: 帮助国内用户写作的托盘助手,一键发布本地文章到主流博客平台(知乎、简书、博客园、CSDN、SegmentFault、掘金、开源中国),剪贴板图片一键上传至图床(新浪、Github、图壳、腾讯云、阿里云、又拍云、七牛云)

公共CDN图片分发方案: 掘金会自动解析生成图片CDN

写博客多平台发布简书、掘金、CSDN | 码农家园 (codenong.com)

Typora+PicGo实现自己的图片自动上传教程 (juejin.cn)

Typora+Vue主题+Gitee图床轻松写文章 (juejin.cn)

Github+jsDelivr+PicGo 打造稳定快速、高效免费图床 - 知乎 · 语雀 (yuque.com)

Github Actions自动部署Hexo博客 | 唐瑞平 (tangruiping.com)

jsdelivr 出现 Failed to fetch version info for 原因分析 | 唐瑞平 (tangruiping.com)

免费CDN:jsDelivr + Github | TRHX’S BLOG (itrhx.com)

后缀必须改个名称: https://cdn.jsdelivr.net/gh/qingshan-dev/blog@main/images/20201203234813.png

否则提示fetch @latest 失败, 网上说需要发布, release后的tag也是分支

Markdown分发工具:

让排版变 Nice (mdnice.com)

文章排版经验及工具 - 知乎 (zhihu.com)