Astro博客工具站

minimal-blog — Astro 博客模板

作者 getscissorhands

ScissorHands.NET 的极简博客主题,使用 Razor 组件、无框架 CSS 与原生 JavaScript,并包含 Google Analytics 与 Open Graph 插件。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

3 个预览视图
桌面端首页1 / 3
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 3

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-02查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

使用 Razor 组件构建页面与布局

02

无框架 CSS 与原生 JavaScript,不依赖前端框架

03

内置 Google Analytics 与 Open Graph 插件

04

包含多语言切换与本地化回退提示组件

05

提供 sample 示例用于本地预览

模板详细介绍

minimal-blog 是面向 ScissorHands.NET 的博客主题,仓库描述为受 astro-minimal-blog 启发的极简主题。README 说明它使用 Razor 组件、无框架 CSS 和原生 JavaScript,并包含 Google Analytics 与 Open Graph 两个插件。主题源码位于 src/,包含 Header、Footer、PostCard、TagList、LanguageSwitcher 等组件,以及 IndexView、PostView、PageView、TagListView、TagView、NotFoundView 等视图,另有 theme.css、theme.js 和 theme.json。仓库提供 sample 目录用于本地预览,示例包含英语、韩语、缺失翻译和仅预览用的发布状态。

使用前提是 .NET 10+ SDK,并可选 Visual Studio 2026 或带 C# Dev Kit 的 VS Code。本地预览需要先创建 sample/themes/minimal-blog 指向 src 的符号链接,再在仓库根目录执行 dotnet restore && dotnet build,然后进入 sample 运行 dotnet run -- --preview,访问 http://localhost:5000/。重新构建 Razor 组件前需停止预览。

该仓库采用 MIT 许可,允许免费使用、修改、商用和分发代码,但分发时需保留版权声明与完整 MIT 许可声明。演示图片、字体、图标等第三方素材需单独核对许可;域名、托管、数据库、支付或 AI 等外部服务可能另外收费。

Astro博客工具站

适合你的项目吗?

适用场景

  • 在 ScissorHands.NET 上搭建极简风格个人博客
  • 需要多语言支持与语言切换的博客站点
  • 希望以 Razor 组件方式定制博客页面结构
  • 需要集成 Google Analytics 与 Open Graph 元数据的博客

适合人群

  • 使用 .NET 10+ SDK 的开发者
  • 熟悉 Razor 组件与 C# 的开发者
  • 需要 MIT 许可下可修改博客主题的团队
  • 使用 ScissorHands.NET 构建站点并需要极简博客外观的用户

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    需要安装 .NET 10+ SDK,可选 Visual Studio 2026 或带 C# Dev Kit 的 VS Code

  2. 2

    本地预览前需创建 sample/themes/minimal-blog 指向 ../../src 的符号链接

  3. 3

    在仓库根目录执行 dotnet restore && dotnet build

  4. 4

    进入 sample 目录执行 dotnet run -- --preview,访问 http://localhost:5000/

  5. 5

    重新构建 Razor 组件前需停止预览

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 本地预览依赖 sample/themes/minimal-blog 指向 src 的符号链接;若检出未保留符号链接,需手动重建,否则示例无法运行。
  • 使用该主题需安装 .NET 10+ SDK,属于外部工具依赖,不包含在主题源码内。
  • 开发环境需 Visual Studio 2026 或带 C# Dev Kit 的 VS Code,这些为可选外部工具,可能涉及单独许可或费用。
  • 内置 Google Analytics 插件会向 Google 发送访问数据,使用前需自行评估其服务条款、隐私合规与可能的费用。
  • 重新构建 Razor 组件前必须先停止预览进程,否则构建可能失败。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

The sample needs the committed symbolic link at `sample/themes/minimal-blog` pointing to `src`, with the relative target `../../src`. Recreate it manually if your checkout did not preserve symlinks.

README 原文

- [.NET 10+ SDK](https://dotnet.microsoft.com/download/dotnet/10.0)

README 原文

- [Visual Studio 2026](https://visualstudio.microsoft.com/) or [VS Code](https://code.visualstudio.com/) with [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit)

README 原文

- [Google Analytics](https://github.com/getscissorhands/plugins/tree/main/src/ScissorHands.Plugin.GoogleAnalytics)

README 原文

Stop preview before rebuilding Razor components.

README 原文
https://github.com/getscissorhands/minimal-blog/blob/main/LICENSEhttps://github.com/getscissorhands/minimal-blog/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 85 / 100
技术栈
Astro
网站类型
博客 · 工具站
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-10-01
截图检查日期
2026-10-02

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: 87a72646e6fafc3678140a785da93c727827757e49a6a4483b33f55c290ada17

2026-10-02T09:36:26.351Z

来源文件 / 仓库
# Minimal Blog Theme

A minimal, responsive blog theme for [ScissorHands.NET](https://getscissorhands.app/), inspired by [astro-minimal-blog](https://github.com/alexanderhodes/astro-minimal-blog). It uses Razor components, framework-free CSS, and plain JavaScript.

See [the demo](https://getscissorhands.app/minimal-blog/) or read the **[theme documentation](https://getscissorhands.app/docs/themes/)** for setup, configuration, component APIs, navigation, and customization.

## Prerequisites

- [.NET 10+ SDK](https://dotnet.microsoft.com/download/dotnet/10.0)
- [Visual Studio 2026](https://visualstudio.microsoft.com/) or [VS Code](https://code.visualstudio.com/) with [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit)

## Theme Layout

```text
src/
├── assets/
│   ├── css/
│   │   └── theme.css
│   ├── images/
│   │   └── icons/
│   │       ├── chevron-down.svg
│   │       ├── github.svg
│   │       ├── globe.svg
│   │       ├── moon.svg
│   │       └── sun.svg
│   └── js/
│       └── theme.js
├── Components/
│   ├── Footer.razor
│   │   └── Footer.razor.cs
│   ├── Header.razor
│   │   └── Header.razor.cs
│   ├── LanguageSwitcher.razor
│   ├── LocalizationFallbackBanner.razor
│   ├── LocalizationMetadata.razor
│   ├── NavigationItems.razor
│   │   └── NavigationItems.razor.cs
│   ├── PostCard.razor
│   │   └── PostCard.razor.cs
│   ├── PublicationBadges.razor
│   └── TagList.razor
│       └── TagList.razor.cs
├── favicon.ico
├── theme.json
├── minimal-blog.csproj
├── _Imports.razor
├── MainLayout.razor
├── IndexView.razor
├── PostView.razor
├── PageView.razor
├── NotFoundView.razor
├── TagListView.razor
└── TagView.razor
```

Indented `.razor.cs` entries show which components they belong to; on disk,
they sit beside their `.razor` files in `src/Components/`.

## Plugins

This theme includes the following plugins:

- [Google Analytics](https://github.com/getscissorhands/plugins/tree/main/src/ScissorHands.Plugin.GoogleAnalytics)
- [Open Graph](https://github.com/getscissorhands/plugins/tree/main/src/ScissorHands.Plugin.OpenGraph)

The default configuration of the plugins above, refer to the [sample README](./sample/README.md#plugin-settings).

## Local Preview

The sample needs the committed symbolic link at `sample/themes/minimal-blog` pointing to `src`, with the relative target `../../src`. Recreate it manually if your checkout did not preserve symlinks.

Here are the commands:

```bash
# zsh/bash
mkdir -p sample/themes
ln -s ../../src sample/themes/minimal-blog
```

```powershell
# PowerShell
New-Item -ItemType Directory -Path ./sample/themes -Force
New-Item -ItemType SymbolicLink -Path ./sample/themes/minimal-blog -Target ../../src
```

Then build and preview from the repository root:

```bash
dotnet restore && dotnet build
cd sample
dotnet run -- --preview
```

Open `http://localhost:5000/`. The sample includes English, Korean, missing translations, and preview-only publication statuses. Stop preview before rebuilding Razor components.
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。