Svelte博客启动器

sveltekit-shadcn-blog-starter — Svelte 博客模板

作者 YusufCeng1z

基于 SvelteKit 的博客启动器,集成 shadcn-svelte、Tailwind CSS、MDsveX 与 TypeScript,内置多作者、标签、搜索、暗色主题、sitemap 与 RSS。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

使用 MDsveX 以 Markdown 撰写文章,并可在内容中嵌入 Svelte 组件

02

基于 shadcn-svelte 的 UI 组件与 Tailwind CSS 样式,便于按品牌调整

03

支持多作者与作者主页,以及按标签自动生成的归档页面

04

自动生成 sitemap.xml 与 RSS 订阅,并提供 SEO 元标签与 Open Graph 配置

05

内置亮/暗主题与跟随系统偏好,采用移动优先的响应式布局

06

使用 TypeScript,站点信息集中在 src/lib/config/site.ts 配置

模板详细介绍

这是一个面向开发者的 SvelteKit 博客启动模板,采用 shadcn-svelte 提供 UI 组件、Tailwind CSS 负责样式、MDsveX 将 Markdown 与 Svelte 组件结合用于写作,并使用 TypeScript 提供类型支持。内容层面支持多作者与作者主页、基于标签的归档页以及内置搜索;站点层面自动生成 sitemap.xml 与 RSS 订阅,并包含面向 SEO 的元标签与 Open Graph 配置。界面提供亮/暗主题并跟随系统偏好,布局为移动优先的响应式设计。

使用方式上,克隆仓库后安装依赖并运行开发服务器即可开始写作;文章以 Markdown 文件形式放在 src/posts/ 下,通过 frontmatter 声明标题、描述、日期、标签与作者,标签页和作者页会随之生成。站点名称、URL、描述与社交链接集中在 src/lib/config/site.ts 中配置。部署方面,README 推荐 Netlify(构建设置可自动识别),同时说明可搭配 Vercel、Cloudflare Pages 或 Node.js 的 SvelteKit 适配器使用。

限制与注意事项:模板本身为 MIT 许可的代码,可免费使用、修改、商用与分发,但分发时需保留版权与许可声明;演示图片、字体、图标等第三方素材需单独核对许可,域名、托管等外部服务可能产生费用。README 中关于部署速度、性能优化等表述属于项目自述,未在本次资料中独立验证。

Svelte博客启动器

适合你的项目吗?

适用场景

  • 个人开发者搭建技术博客并持续发布 Markdown 文章
  • 多人协作的内容站点,需要作者主页与标签归档
  • 希望自带 RSS 与 sitemap、便于搜索引擎收录的博客项目
  • 以 SvelteKit 与 shadcn-svelte 为基础进行二次开发的前端练习或原型

适合人群

  • 熟悉 SvelteKit 或愿意学习 Svelte 生态的前端开发者
  • 需要多作者、标签与搜索等基础内容组织能力的博客作者
  • 希望以 Markdown 写作并保留组件扩展能力的技术写作者
  • 计划部署到 Netlify、Vercel、Cloudflare Pages 或 Node.js 环境的项目

上手与定制指南

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

  1. 1

    克隆仓库后执行 npm install 安装依赖,再运行 npm run dev 启动开发服务器(默认 http://localhost:5173)

  2. 2

    在 src/posts/ 下新建 .md 文件,通过 frontmatter 填写 title、description、date、tags、author

  3. 3

    在 src/lib/config/site.ts 中修改站点名称、URL、描述与社交链接

  4. 4

    部署前执行 npm run build 构建,可用 npm run preview 在本地预览生产构建

  5. 5

    部署到 Netlify 可直接连接仓库;其他平台需按 SvelteKit 适配器文档安装对应 adapter

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 代码采用 MIT 许可,可免费使用、修改、商用与分发,但分发时须保留版权与许可声明。
  • 部署需自行选择并配置 SvelteKit 适配器(如 Vercel、Cloudflare Pages、Node.js),相关平台账号与托管可能产生费用。
  • 推荐部署到 Netlify,需注册 Netlify 账号并连接 Git 仓库,托管服务可能产生费用。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

README 原文

This starter works with any SvelteKit-compatible platform:

README 原文

Go to [Netlify](https://app.netlify.com) and click "New site from Git"

README 原文
https://github.com/YusufCeng1z/sveltekit-shadcn-blog-starter/blob/main/LICENSEhttps://github.com/YusufCeng1z/sveltekit-shadcn-blog-starter/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 92 / 100
技术栈
Svelte
网站类型
博客 · 启动器
这个分数如何计算

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: eddf84d09ee2fc45da7d300db98ee7b9d9249ef97f7610db1548b903ddf55954

2026-10-01T00:41:11.252Z

来源文件 / 仓库
# SvelteKit Shadcn Blog Starter

<div align="center">

[![GitHub stars](https://img.shields.io/github/stars/YusufCeng1z/sveltekit-shadcn-blog-starter?style=social)](https://github.com/YusufCeng1z/sveltekit-shadcn-blog-starter/stargazers)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

</div>

![SvelteKit Blog Starter](./static/images/blog-starter.jpg)

A modern, feature-rich blog starter template built with SvelteKit, shadcn-svelte, Tailwind CSS, and MDsveX. This starter provides everything you need to launch a professional blog in minutes, not hours.

**[Live Demo](https://sveltekit-blog-starter.netlify.app)** | **[Example Blog Post](https://sveltekit-blog-starter.netlify.app/blog/hello-world)** | **[Author Page](https://sveltekit-blog-starter.netlify.app/authors/yusuf-cengiz)** | **[RSS Feed](https://sveltekit-blog-starter.netlify.app/rss.xml)** | **[Sitemap](https://sveltekit-blog-starter.netlify.app/sitemap.xml)**

## What You Get

```
⚡ 5 minutes to deploy    📝 Write in Markdown    🎨 Beautiful UI out of the box
🔍 SEO optimized          🌙 Dark mode ready      📱 Fully responsive
```

## Why This Starter?

Creating a blog from scratch involves countless decisions and configurations. This starter eliminates that complexity by providing a production-ready foundation that you can customize to your needs. Simply clone, write your content, and deploy.

## Features

**Content Management**
- Write blog posts in Markdown with full Svelte component support (MDsveX)
- Multi-author support with dedicated author profile pages
- Tag-based organization with automatic tag pages
- Built-in search functionality

**Design & UX**
- Beautiful, accessible UI components from shadcn-svelte
- Dark/light theme with automatic system preference detection
- Fully responsive, mobile-first design
- Tailwind CSS for easy customization

**SEO & Performance**
- Auto-generated sitemap.xml and RSS feed
- Optimized meta tags and Open Graph support
- Fast page loads with SvelteKit's built-in optimizations
- TypeScript for type safety and better developer experience

## Quick Start

```bash
# Clone the repository
git clone https://github.com/YusufCeng1z/sveltekit-shadcn-blog-starter.git
cd sveltekit-shadcn-blog-starter

# Install dependencies
npm install

# Start development server
npm run dev
```

Open [http://localhost:5173](http://localhost:5173) and start customizing your blog.

## Project Structure

```
sveltekit-blog-starter/
├── src/
│   ├── lib/
│   │   ├── components/     # Reusable UI components
│   │   └── config/         # Site configuration
│   ├── posts/              # Your blog posts (Markdown)
│   └── routes/
│       ├── blog/           # Blog listing and post pages
│       ├── authors/        # Author profile pages
│       ├── tags/           # Tag archive pages
│       ├── sitemap.xml/    # Auto-generated sitemap
│       └── rss.xml/        # Auto-generated RSS feed
└── static/                 # Static assets (images, etc.)
```

## Creating Your First Blog Post

1. Create a new `.md` file in `src/posts/`:

```markdown
---
title: "My First Blog Post"
description: "A brief description of your post"
date: "2025-12-08"
tags: ["tutorial", "getting-started"]
author: "your-author-id"
---

# Welcome to My Blog

Start writing your content here using Markdown...
```

2. The post automatically appears on your blog page
3. Tags and author pages are generated automatically

## Configuration

Edit `src/lib/config/site.ts` to customize your blog:

```typescript
export const siteConfig = {
    name: "Your Blog Name",
    url: "https://yourdomain.com",
    description: "Your blog description",
    links: {
        twitter: "https://twitter.com/yourusername",
        github: "https://github.com/yourusername",
    },
};
```

## Deployment

### Deploy to Netlify (Recommended)

1. Push your code to GitHub
2. Go to [Netlify](https://app.netlify.com) and click "New site from Git"
3. Select your repository
4. Click "Deploy site" (build settings are auto-detected)

Your blog will be live in minutes with automatic deployments on every push.

### Other Platforms

This starter works with any SvelteKit-compatible platform:
- **Vercel**: Install `@sveltejs/adapter-vercel`
- **Cloudflare Pages**: Install `@sveltejs/adapter-cloudflare`
- **Node.js**: Install `@sveltejs/adapter-node`

See [SvelteKit adapters documentation](https://kit.svelte.dev/docs/adapters) for details.

## Built With

- [SvelteKit](https://kit.svelte.dev/) - Full-stack web framework
- [Svelte 5](https://svelte.dev/) - Reactive UI framework with Runes
- [MDsveX](https://mdsvex.pngwn.io/) - Markdown with Svelte components
- [shadcn-svelte](https://www.shadcn-svelte.com/) - High-quality UI components
- [Tailwind CSS](https://tailwindcss.com/) - Utility-first CSS framework
- [TypeScript](https://www.typescriptlang.org/) - Type-safe JavaScript

## Customization

**Styling**: Edit `src/routes/layout.css` for global styles or use Tailwind utility classes throughout your components.

**Components**: All UI components are in `src/lib/components/` and can be customized to match your brand.

**Authors**: Add author information in your author configuration to enable multi-author support.

## Building for Production

```bash
# Create production build
npm run build

# Preview production build locally
npm run preview
```

## Contributing

Contributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

## Show Your Support

If this starter helped you launch your blog faster, please consider giving it a star on GitHub! Your support helps others discover this project and motivates continued development.

**Why star this project?**
- Help other developers find a quality blog starter
- Show appreciation for the work that went into this
- Get notified about new features and updates
- Support open-source development

[⭐ Star this project on GitHub](https://github.com/YusufCeng1z/sveltekit-shadcn-blog-starter)

---

**Built with ❤️ by [Yusuf Cengiz](https://github.com/YusufCeng1z)**

Have questions or suggestions? [Open an issue](https://github.com/YusufCeng1z/sveltekit-shadcn-blog-starter/issues) or reach out!
反馈内容错误

看看同类模板

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