首先在linux vps上,按照此文'在mac/linux上,快速搭建nim环境'搭建nim环境。然后,
- 安装依赖
nimble install markdown
nimble install nwt
git clone https://github.com/muxueqz/kun /usr/local/kun
cd /usr/local/kun
cd srcs
nano hf.md
cat hf.md
显示:
Title: 快乐的节日
Date: 2024-11-08 00:12
Tags: music
Slug: happy-festival
Summary: 这是一首歌
此处写正文或html codes.
cd ..
nim c -r build.nim (这个就是生成/更新静态网站的根目录的命令)演示网站: https://effervescent-narwhal-271ea8.netlify.app/
项目地址: https://github.com/muxueqz/kun
https://github.com/muxueqz/kun/issues/2
https://drive.google.com/file/d/1VF5jaxgN6rirRXAfZ0CJvlmvxO0Xt5s0/view?usp=sharing
-----
https://kb-nnowvt1zc-luckypoems-projects.vercel.app
这个网站是我在windows上搭建的,生成了静态网站的根目录,然后cd到该目录,
(在windows上搭建的话,还需要运行:nimble install nimja)
运行vc --cwd .
用上述命令把静态网站的根目录的内容上传到vercel.com空间而得到的网址。
No comments:
Post a Comment