個人 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.