个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Write Razor. Publish a purely static site.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Write Razor. Publish a purely static site. Kiji renders your Razor components with
Blazor's HtmlRenderer
and writes each page, Markdown included, as plain HTML for any static host.
Build with Razor, C#, and standard .NET host builders. Preview via dotnet watch, publish via dotnet publish.
Typed Markdown, responsive WebP images, RSS, and sitemaps in one package.
The browser reloads while you write, and publishing reuses unchanged pages.
Customize Markdown parsing, add your own services and generated files, or replace the image processor.
The output needs no .NET server or Blazor runtime. Use JavaScript for browser
interactivity; Razor event handlers such as @onclick do not run in the browser.
Kiji requires the .NET 10 SDK or later.
dotnet new install Kiji.Templates
dotnet new kiji-blog -o MyBlog
cd MyBlog
Edit your site settings in Program.cs:
//Program.cs
var builder = StaticSite.CreateBuilder(args);
builder.SiteInfo = new SiteInfo
{
BaseUrl = new Uri("https://example.org/"),
Name = "My Blog",
};
Start the development server and open http://localhost:8080:
dotnet watch
The browser reloads as you edit content and components.
Stop the development server with Ctrl+C, then generate the static site in dist/:
dotnet publish -o dist
See Kiji.Templates for all templates and options, or follow Getting started to use a template or build a minimal blog from scratch.
| Demo | Image | Create a site |
|---|---|---|
| Kiji Blog Template (source) | dotnet new kiji-blog -o MyBlog | |
| Kiji Doc Template (source) | dotnet new kiji-doc -o MyDocs | |
| Kiji Interactive Template (source) | dotnet new kiji-interactive -o MyInteractive | |
| Kiji Fluent Template (source) | dotnet new kiji-fluent -o MyFluent |
Contributions to Kiji and its documentation are welcome. Open an issue to report a bug or suggest a feature.