1. 准备工作
在导入之前,请确保你的 github仓库符合以下条件:
入口文件:仓库中有一个入口文件(例如main.ts , server.ts ,mod.ts 或index.ts)
代码已推送:确保你的最新代码已经git push到你的仓库或者你也可以在github.com/yourusername/yourrepo中,在线修改你的代码(当然你需先登录你的github账号)
2. 导入步骤
访问 https://console.deno.com/login,建议用你的github账号进行登录。登录后,就跳转到了
https://console.deno.com/你的github账号名。然后点击'new app'按钮,在跳转到的页面里,
在复选框select user or organization里,选择用户名,我的用户名是briteming(它就是我的github账号名)。在briteming的下一行的select repository复选框里,输入你的仓库名进行搜索,(我的仓库名是tsb, tsb 是fork自https://github.com/lumeland/theme-simple-blog),点击搜索出来的仓库名,然后点击页面下方的create app按钮,deno.com平台就开始部署你的程序了,等待部署完成,部署完成后,我得到了网址https://tsb.briteming.deno.net/,它就是我的静态博客的网址。
项目地址:
https://github.com/lumeland/theme-simple-blog
https://github.com/briteming/tsb
博客地址: https://tsb.briteming.deno.net/
上面说的‘ 你也可以在github.com/yourusername/yourrepo中,在线修改你的代码’就是指新建源帖。
访问https://github.com/briteming/tsb/tree/main/src/posts,新建源帖fh.md, 内容为:
---
title: 战马
date: '2026-02-22T20:30:00'
author: ym
tags:
- misc1
- misc2
- misc3
comments:
src: 'https://mastodon.gal/@misteroom/110810445656343599'
draft: false
---
此处写html代码或正文
(详见 https://github.com/briteming/tsb/blob/main/src/posts/fh.md?plain=1)
略等1分钟,博客网站就会更新 。
相关帖子: 安装基于deno的静态博客程序lume