【个人博客】适合小白的静态博客搭建教程:Gridea + Github + Vercel,稳定白嫖互联网上属于自己的一亩三分地

这个新增帖子在哪编辑呢?

一种是本地编辑 push 到仓库,一种是支持 TinaCMS,在线编辑,会自动创建 commit 触发部署。最后文件都是在 GitHub 的仓库中

2 个赞

后边应该会支持 Notion 这些方案

1 个赞

没找到帖子的路径

2 个赞

这周回家试试

src/content/doc 中 里创建就好

1 个赞

:heart_eyes: :heart_eyes: 已点star,未来可期

1 个赞

想法很多,努力完善,有问题,随时issue或者这里圈我

2 个赞

感谢佬友分享

多谢,一直一点都是10年,以为账号没实名。

2 个赞

佬友们试试这个,感觉很适合静态博客

看起来还不错

L友搞一个看看,让我们看看效果 :grin:

1 个赞
var head= document.getElementsByTagName('head')[0]; var script= document.createElement('script'); script.type= 'text/javascript'; script.src= 'https://res.zvo.cn/translate/inspector_v2.js'; head.appendChild(script);

控制台执行这个就可以试用效果,确实还不错

2 个赞

试了,试用只能选一个语言

3 个赞

刷新一下就可以试别的

这个主题好看,可惜客户端不更新了。

3 个赞

感谢佬友分享

感谢佬友分享

佬为啥我部署了之后会报错啊?

总结

[19:53:32.320] Running build in Washington, D.C., USA (East) – iad1
[19:53:32.414] Cloning github.com/SammySnake-d/my-blogs (Branch: main, Commit: 87a2992)
[19:53:32.420] Skipping build cache, deployment was triggered without cache.
[19:53:32.895] Cloning completed: 482.04ms
[19:53:33.266] Running "vercel build"
[19:53:33.679] Vercel CLI 39.1.3
[19:53:34.422] Detected `pnpm-lock.yaml` version 6 generated by [email protected]
[19:53:34.423] Running "install" command: `pnpm install`...
[19:53:37.007] Lockfile is up to date, resolution step is skipped
[19:53:37.150] Progress: resolved 1, reused 0, downloaded 0, added 0
[19:53:37.440] Packages: +1613
[19:53:37.441] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[19:53:38.151] Progress: resolved 1613, reused 0, downloaded 30, added 18
[19:53:39.161] Progress: resolved 1613, reused 0, downloaded 155, added 147
[19:53:40.161] Progress: resolved 1613, reused 0, downloaded 334, added 319
[19:53:41.160] Progress: resolved 1613, reused 0, downloaded 582, added 577
[19:53:42.160] Progress: resolved 1613, reused 0, downloaded 644, added 631
[19:53:43.177] Progress: resolved 1613, reused 0, downloaded 798, added 790
[19:53:44.178] Progress: resolved 1613, reused 0, downloaded 820, added 810
[19:53:45.178] Progress: resolved 1613, reused 0, downloaded 933, added 925
[19:53:46.179] Progress: resolved 1613, reused 0, downloaded 1038, added 1031
[19:53:47.181] Progress: resolved 1613, reused 0, downloaded 1186, added 1183
[19:53:48.182] Progress: resolved 1613, reused 0, downloaded 1371, added 1358
[19:53:49.182] Progress: resolved 1613, reused 0, downloaded 1552, added 1542
[19:53:50.077] Progress: resolved 1613, reused 0, downloaded 1611, added 1613, done
[19:53:50.607] .../node_modules/better-sqlite3 install$ prebuild-install || node-gyp rebuild --release
[19:53:50.879] .../node_modules/better-sqlite3 install: prebuild-install warn install No prebuilt binaries found (target=22.12.0 runtime=node arch=x64 libc= platform=linux)
[19:53:50.965] .../node_modules/better-sqlite3 install: gyp info it worked if it ends with ok
[19:53:50.965] .../node_modules/better-sqlite3 install: gyp info using [email protected]
[19:53:50.966] .../node_modules/better-sqlite3 install: gyp info using [email protected] | linux | x64
[19:53:51.022] .../node_modules/better-sqlite3 install: (node:210) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
[19:53:51.023] .../node_modules/better-sqlite3 install: (Use `node --trace-deprecation ...` to show where the warning was created)
[19:53:51.068] .../node_modules/better-sqlite3 install: gyp info find Python using Python version 3.12.2 found at "/usr/local/bin/python3"
[19:53:51.245] .../node_modules/better-sqlite3 install: gyp http GET https://nodejs.org/download/release/v22.12.0/node-v22.12.0-headers.tar.gz
[19:53:51.330] .../node_modules/better-sqlite3 install: gyp http 200 https://nodejs.org/download/release/v22.12.0/node-v22.12.0-headers.tar.gz
[19:53:52.532] .../node_modules/better-sqlite3 install: gyp http GET https://nodejs.org/download/release/v22.12.0/SHASUMS256.txt
[19:53:52.550] .../node_modules/better-sqlite3 install: gyp http 200 https://nodejs.org/download/release/v22.12.0/SHASUMS256.txt
[19:53:52.557] .../node_modules/better-sqlite3 install: gyp info spawn /usr/local/bin/python3
[19:53:52.557] .../node_modules/better-sqlite3 install: gyp info spawn args [
[19:53:52.557] .../node_modules/better-sqlite3 install: gyp info spawn args   '/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
[19:53:52.557] .../node_modules/better-sqlite3 install: gyp info spawn args   'binding.gyp',
[19:53:52.558] .../node_modules/better-sqlite3 install: gyp info spawn args   '-f',
[19:53:52.558] .../node_modules/better-sqlite3 install: gyp info spawn args   'make',
[19:53:52.558] .../node_modules/better-sqlite3 install: gyp info spawn args   '-I',
[19:53:52.558] .../node_modules/better-sqlite3 install: gyp info spawn args   '/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build/config.gypi',
[19:53:52.558] .../node_modules/better-sqlite3 install: gyp info spawn args   '-I',
[19:53:52.558] .../node_modules/better-sqlite3 install: gyp info spawn args   '/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
[19:53:52.558] .../node_modules/better-sqlite3 install: gyp info spawn args   '-I',
[19:53:52.559] .../node_modules/better-sqlite3 install: gyp info spawn args   '/vercel/.cache/node-gyp/22.12.0/include/node/common.gypi',
[19:53:52.559] .../node_modules/better-sqlite3 install: gyp info spawn args   '-Dlibrary=shared_library',
[19:53:52.559] .../node_modules/better-sqlite3 install: gyp info spawn args   '-Dvisibility=default',
[19:53:52.560] .../node_modules/better-sqlite3 install: gyp info spawn args   '-Dnode_root_dir=/vercel/.cache/node-gyp/22.12.0',
[19:53:52.561] .../node_modules/better-sqlite3 install: gyp info spawn args   '-Dnode_gyp_dir=/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp',
[19:53:52.561] .../node_modules/better-sqlite3 install: gyp info spawn args   '-Dnode_lib_file=/vercel/.cache/node-gyp/22.12.0/<(target_arch)/node.lib',
[19:53:52.561] .../node_modules/better-sqlite3 install: gyp info spawn args   '-Dmodule_root_dir=/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3',
[19:53:52.561] .../node_modules/better-sqlite3 install: gyp info spawn args   '-Dnode_engine=v8',
[19:53:52.561] .../node_modules/better-sqlite3 install: gyp info spawn args   '--depth=.',
[19:53:52.561] .../node_modules/better-sqlite3 install: gyp info spawn args   '--no-parallel',
[19:53:52.561] .../node_modules/better-sqlite3 install: gyp info spawn args   '--generator-output',
[19:53:52.561] .../node_modules/better-sqlite3 install: gyp info spawn args   'build',
[19:53:52.561] .../node_modules/better-sqlite3 install: gyp info spawn args   '-Goutput_dir=.'
[19:53:52.561] .../node_modules/better-sqlite3 install: gyp info spawn args ]
[19:53:52.733] .../node_modules/better-sqlite3 install: Traceback (most recent call last):
[19:53:52.734] .../node_modules/better-sqlite3 install:   File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module>
[19:53:52.734] .../node_modules/better-sqlite3 install:     import gyp  # noqa: E402
[19:53:52.734] .../node_modules/better-sqlite3 install:     ^^^^^^^^^^
[19:53:52.734] .../node_modules/better-sqlite3 install:   File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module>
[19:53:52.734] .../node_modules/better-sqlite3 install:     import gyp.input
[19:53:52.734] .../node_modules/better-sqlite3 install:   File "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module>
[19:53:52.734] .../node_modules/better-sqlite3 install:     from distutils.version import StrictVersion
[19:53:52.734] .../node_modules/better-sqlite3 install: ModuleNotFoundError: No module named 'distutils'
[19:53:52.742] .../node_modules/better-sqlite3 install: gyp ERR! configure error 
[19:53:52.743] .../node_modules/better-sqlite3 install: gyp ERR! stack Error: `gyp` failed with exit code: 1
[19:53:52.743] .../node_modules/better-sqlite3 install: gyp ERR! stack     at ChildProcess.onCpExit (/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/lib/configure.js:325:16)
[19:53:52.743] .../node_modules/better-sqlite3 install: gyp ERR! stack     at ChildProcess.emit (node:events:524:28)
[19:53:52.743] .../node_modules/better-sqlite3 install: gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
[19:53:52.744] .../node_modules/better-sqlite3 install: gyp ERR! System Linux 5.10.174
[19:53:52.744] .../node_modules/better-sqlite3 install: gyp ERR! command "/node22/bin/node" "/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
[19:53:52.744] .../node_modules/better-sqlite3 install: gyp ERR! cwd /vercel/path0/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3
[19:53:52.744] .../node_modules/better-sqlite3 install: gyp ERR! node -v v22.12.0
[19:53:52.744] .../node_modules/better-sqlite3 install: gyp ERR! node-gyp -v v9.4.1
[19:53:52.744] .../node_modules/better-sqlite3 install: gyp ERR! not ok 
[19:53:52.753] .../node_modules/better-sqlite3 install: Failed
[19:53:52.754]  ELIFECYCLE  Command failed with exit code 1.
[19:53:52.805] Error: Command "pnpm install" exited with 1
[19:53:53.580]