基于 Eleventy 的静态站点启动器,使用 Markdown 写作
smix-eleventy-starter — Eleventy 启动器模板
作者 MaybeThisIsRu
Smix 是一个面向 Eleventy 的静态站点启动器,强调标准合规、IndieWeb 微格式与阅读体验,适合个人博客或独立站点。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
内置符合标准的 Atom 订阅源,支持发布时间与更新时间
提供 Open Graph 与 Twitter 社交分享元标签
包含 Microformats2 支持,覆盖文章、笔记、回复与照片类型
CSS 经 PostCSS 处理,JavaScript 由 esbuild 打包
内置暗色模式与减少动态效果的自定义媒体查询
模板详细介绍
Smix 是一个基于 Eleventy 的启动器项目,作者表示当前版本已基本满足自身需求,后续改进需由社区通过 Pull Request 提交。它面向希望搭建个人博客或独立站点的开发者,提供 Markdown 写作、Atom 订阅、社交分享元标签、站点地图与 robots.txt 等基础能力。
在内容层面,Smix 支持文章、笔记、回复与照片四种 IndieWeb 文章类型,并内置 Microformats2 的 h-card、h-entry 与 h-feed 标记,便于在 Microsub 阅读器中订阅。Atom 订阅源遵循标准,能识别文章的发布时间与更新时间,并使用 RFC822 日期格式。
在样式与脚本方面,CSS 通过 PostCSS 处理,包含导入、嵌套、压缩、自动前缀、自定义属性、自定义媒体查询与 LCH 色彩等;JavaScript 由 esbuild 转译与打包,支持按页面生成独立 bundle。项目还内置暗色模式、减少动态效果的自定义媒体查询,以及 Atkinson 字体与系统字体回退。
需要注意的是,项目定位是启动器而非完整产品,作者已将其视为基本完成,部分待办事项(如按标签生成订阅源、定时发布文章、重写开发与生产文档)尚未实现。使用前应自行核对第三方素材的许可,并确认外部服务是否收费。
适合你的项目吗?
适用场景
- 搭建个人博客并输出 Atom 订阅源
- 在 Microsub 阅读器中订阅站点内容
- 需要社交分享卡片与基础 SEO 元信息的静态站点
- 使用 Markdown 写作并希望按页面拆分 JavaScript 的项目
适合人群
- 熟悉 Eleventy 与 Markdown 的开发者
- 关注 IndieWeb 与微格式的个人站点作者
- 需要标准合规订阅源与可发现性元标签的博客项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
项目使用 npm 脚本,开发与构建命令需参考仓库 README
- 2
按页面生成 JavaScript bundle 可使用 npm run dev:jsb --in=文件名 --out=文件名
- 3
作者已将该版本视为基本完成,后续增强需社区提交 Pull Request
- 4
演示图片、字体、图标等第三方素材需单独核对许可
- 5
域名、托管等外部服务可能产生额外费用
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 项目作者已将其视为基本完成,不再主动开发;后续功能增强需由社区通过 Pull Request 提交,使用者不应期待官方持续更新或支持。
- 该启动器基于他人项目构建,使用时需留意上游项目的许可与署名要求。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Any further enhancements will require a pull request to come from the community.
README 原文
https://github.com/MaybeThisIsRu/smix-eleventy-starter/blob/main/LICENSEhttps://github.com/MaybeThisIsRu/smix-eleventy-starter/blob/main/README.mdSites that took Smix Eleventy Starter and made something of their own:
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-01。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 76 / 100
- 技术栈
- Eleventy
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2023-01-09
- 截图检查日期
- 2026-10-01
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Eleventy。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 7fb58ccadfdc1e7cae95db06b015871481284c9e9dc2ca4ec434d06607045c86
2026-10-01T14:33:25.196Z
来源文件 / 仓库# 🌻 Smix
A standards-respecting starter kit for Eleventy. Go Indie.
⚠️ This project is now considered more-or-less complete for the author's needs. Any further enhancements will require a pull request to come from the community.
## Reading.
For nice text, there's [Typeset](https://www.npmjs.com/package/typeset). While it adds to the build time, it makes for a more polished reading experience.
It seems [people do rely on RSS feeds](https://twitter.com/mxbck/status/1490698469312536578) even in 2022! Cheers to that; there's an Atom feed that is standards-compliant. It understands the published and updated datetime stamps on posts, and uses the RFC822 date format.
Dark mode is included out of the box using a custom media query. (More in future-ready section below).
Date filters such as for friendly dates (10 March 2020) and machine-parseable dates (ISO8601) are available to use via filters.
## Discoverability/SEO.
Meta tags for social networks (Open Graph as well as Twitter). This allows for a nice card display when you (or someone else) shares a link to your post or site. Support for `content-description` meta tag -- this helps decide what text to show for a page/post when shared on social media, as well as in search engines.
Sitemap with `changeFrequency` -- so bots only come back when they need to. (please also see [issue #7](https://github.com/hirusi/smix-eleventy-starter/issues/7)). `robots.txt` is a cherry on the top -- I would also recommend using it to [hide your personal picture](https://rusingh.com/block-images-appearing-in-search/) if so desired.
## Writing
Write in Markdown, much loved among developers. If you don't already know it, it's [easy to get started](https://commonmark.org/help/tutorial/). You can also use separate apps and then copy-paste your content into a new file. This allows for focusing on content first, before messing with any technicals. I recommend [Bear](https://bear.app/).
### Linking to pages or posts.
`postUrl` shortcode similar to Jekyll's `post_url` and `link` liquid tags:
```liquid
{% postUrl collections.primary 'on-burnout' %}
```
### Code blocks.
Code blocks are made possible via [an Eleventy plugin](https://www.11ty.dev/docs/plugins/syntaxhighlight/). Many [Prism](https://prismjs.com/) themes are [available to use](https://github.com/PrismJS/prism-themes/tree/master/themes).
## IndieWeb
For those pushing [#IndieWeb](https://www.smashingmagazine.com/2020/08/autonomy-online-indieweb/), some basic [Microformats2](https://indieweb.org/microformats2) support is included. From h-card to understand authorship, h-entry to understand a post, and h-feed to have Microformat feeds. This allows following a website in [Microsub readers](https://indieweb.org/Microsub).
The following [post-types](https://indieweb.org/posts#Types_of_Posts) are supported:
- 📄 Article
- 📔 Note
- ↪ Reply
- 📷 Photo
A single microformats2 feeds is offered via `h-feed`. This includes articles, notes, replies (with or without context), and image(s). These post types also seamlessly work in the Atom feed.
## Future-ready.
The CSS is written with upcoming CSS standards in mind. This is made possible thanks to PostCSS. Inclusions: imports, nesting, purge, minification, autoprefixer, custom properties, custom media queries (this makes a dark mode easy to build!), custom selectors, and [LCH color coding](https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/).
JavaScript is transpiled and bundled via `esbuild`.
## Accessible.
[Atkinson font by The Braille Institute](https://brailleinstitute.org/freefont) is included if you wish to use it. If not, there's a sans, serif, and mono fallback to system fonts.
Care is taken to have good contrast all around.
Should you choose to include some animations, do make use of a custom media query for those who prefer less motion:
```css
/* Prefers reduced motion. */
@media screen and (--rm) {
.fancy {
/* Disable animations. */
}
}
```
## Under The Hood.
### Handling JavaScript.
ES Modules are [now well supported](https://caniuse.com/es6-module) and you should move to them. In that spirit, we use [`esbuild`](https://esbuild.github.io/).
If you want to bundle a single file and that is the default `index.js` source, running `npm run dev:js` is enough.
To allow for page-specific JavaScript files, we have a convenience command to put together a new JS bundle.
```sh
npm run dev:jsb --in=portfolio.js --out=portfolio.js
```
This will create a JS bunlde (hence `jsb`), entering at `src/assets/js/portfolio.js` and outputting at `dist/assets/js/portfolio.js`
Include them in the required page by using the `pageJavaScript` [`block`](https://liquidjs.com/tutorials/partials-and-layouts.html#Layout-Templates-Extends):
```liquid
{% block pageJavascript %}
<script type="module" src="/assets/js/portfolio.js">
{% endblock}
My content here.
```
### Misc Features
* __Prettier and editorconfig__ for consistent formatting of the codebase.
## To-Do
* Feed per tag (this could easily go into 10s or 100s, but you know, choice is important!)
* Scheduled blog posts.
* Re-do development and production docs as needed.
## Built off of
Sites that took Smix Eleventy Starter and made something of their own:
- [Add your site here]
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

eleventy-base-blog
A starter repository for a blog web site using the Eleventy static site generator.
Eleventy · 博客

eleventy-garden
:seedling: A starter site for building a mind garden with eleventy
Eleventy · 启动器

eleventastic
An Eleventy Starter Kit
Eleventy · 启动器

neat-starter
Starter Template for Netlify CMS, Eleventy, Alpine JS & Tailwind CSS
Eleventy · 启动器

Eleventy-Starter-Boilerplate
🚀 Eleventy Starter is production-ready with SEO-friendly for quickly starting a blog. ⚡ Built with Eleventy, …
Eleventy · 博客

eleventy-plus-vite
A clean and fast Eleventy Starter Project with Vite
Eleventy · 启动器
