Repository navigation
Description
- Add post cloudflare pages vercel netlify which one is better (light-cms[bot])
New Post:
content/misc/1793013563.md
content/misc/1793013563.md
title: cloudflare pages vercel netlify which one is better
description: cloudflare pages vercel netlify which one is better
date: '2026-10-26T11:19:00Z'
draft: false
tags:
- vercel
- netlify
- cloudflare
isCJKLanguage: false
headless: false
For most modern web projects, Cloudflare Pages is the best choice for static sites, Vercel is the best for server rendered ones, and Netlify is the all rounder. if you value its integrated web development workflows. There is no universal winner, but for your kind of projects, I'd lean toward Cloudflare Pages for static sites and Vercel for server rendered applications.
Cloudflare Pages vs. Vercel vs. Netlify
1. Cloudflare Pages
Best for static sites
Fast global delivery, generous static hosting capabilities, and a strong ecosystem with Workers, R2, D1, and other edge services.
Best for: blogs, documentation, landing pages, static sites, and frontend apps with APIs hosted separately.
Main trade-off: dynamic applications often require Cloudflare Workers, and its runtime has compatibility differences from a conventional Node.js server.
2. Vercel
Best for server rendered apps
Excellent integration with massive number of tech stack like go, jekyll, fastapi etc etc , preview deployments, server rendering, image optimization, and a polished developer experience. Vercel free tier can’t use the hobby tier for commercial use cases. Vercel is generous about the number of server-less function invocations or bandwidth . But in the paid plan bandwidth costs can go higher in an exponential manner.
3. Netlify
A mature platform with Git-based deployments, deploy previews, serverless functions, and useful integrated web development workflows.
Best for: static sites, Astro, Jamstack projects, and teams that appreciate a unified hosting workflow.
Main trade-off: it has less of a compelling advantage over Cloudflare for simple static hosting or Vercel for Next.js-first development.
Cloudflare's static asset requests are free and unlimited on Pages, while Vercel has plan based allowances and usage charges. Netlify uses a credit-based model for deploys, bandwidth, requests, and compute. Check the current plan details before committing.
Activity
newsletter-newsy commentedon Oct 26, 2026
New Post:
.agents/skills/lightcms-skills/README.md.agents/skills/lightcms-skills/SKILL.md.agents/skills/lightcms-skills/references/astro.md.agents/skills/lightcms-skills/references/content-contract.md.agents/skills/lightcms-skills/references/deployment.md.agents/skills/lightcms-skills/references/eleventy.md.agents/skills/lightcms-skills/references/hugo.md.agents/skills/lightcms-skills/references/jekyll.md.agents/skills/lightcms-skills/references/mdbook.md.agents/skills/lightcms-skills/references/quality-checklist.md.agents/skills/lightcms-skills/references/zine.md.agents/skills/lightcms-skills/references/zola.md.agents/skills/lightcms-skills/README.md
LightCMS Skills
A skill for building, customizing, porting, and publishing on static site templates possible with lightcms. It encodes the conventions shared by the
light-cmstemplate repositories and the compatibility issues that appear when a normal Hugo, Astro, Zola, Eleventy, Jekyll, Zine, or mdBook project is connected to LightCMS.The skill is the repository root:
SKILL.mdis the entry point,references/holds per-generator deep dives, andscripts/check-content.mjsvalidates the content contract.Install
Copy or symlink this directory into the skills directory used by your agent. For OpenCode:
``bashln -s /path/to/lightcms-skills ~/.config/opencode/skills/lightcms-skills
``The folder name and the
nameinSKILL.mdshould match. If your setup discovers skills from another directory, keep the same layout: a folder containingSKILL.md,references/, andscripts/.What it covers
mise.toml, and GitHub Actions.nodateplugin.The content checker
``bashnode scripts/check-content.mjs content
node scripts/check-content.mjs src
node scripts/check-content.mjs _posts
node scripts/check-content.mjs src --allow-no-frontmatter # mdBook
``It exits non-zero on missing titles/descriptions, invalid dates, non-boolean drafts, and epoch filenames. TOML front matter is accepted because Hugo and Zola samples often use it; LightCMS itself writes YAML, so always test at least one YAML entry.
Layout
``textSKILL.md
references/
content-contract.md
hugo.md
astro.md
zola.md
eleventy.md
jekyll.md
zine.md
mdbook.md
deployment.md
quality-checklist.md
scripts/
check-content.mjs
``Scope
The references describe the public
light-cmstemplate patterns, not a frozen API. Pin tool versions in real projects and re-run the build after upgrades. Zine is documented because the org has a Zine template, but the two-repository md2smd pipeline is intentionally presented as a specialist option rather than the default.License
Apache-2.0, matching the template repositories.
.agents/skills/lightcms-skills/SKILL.md
name: lightcms-skills
description: Build, customize, audit, and publish LightCMS-compatible static-site templates. Use this skill whenever the user mentions LightCMS templates, a LightCMS-ready repository, or wants to create, port, or customize a blog or documentation starter for Hugo, Astro/Starlight, Zola, Eleventy, Jekyll, Zine, or mdBook. Also use it for content-folder layout, YAML front matter, slug and filename compatibility, mise tasks, GitHub Actions deployment, or verifying that a site still builds after LightCMS creates a file. Trigger it even when the user only says “make a template like the light-cms org” or “connect this site to LightCMS.”
license: Apache-2.0
metadata:
labels: "lightcms,hugo,astro,zola,eleventy,jekyll,zine,mdbook,static-site,frontmatter"
maintainer: light-cms
LightCMS Templates
A LightCMS template is not just a working static site. It is a site whose content a non-technical writer can create, edit, and publish through LightCMS without breaking the build. The generator, the content folder, the front matter, the slug rules, and the deploy pipeline all have to agree.
This skill captures the conventions used by the
light-cmstemplate repositories and the failure modes that appear when a normal SSG project is connected to LightCMS.The contract
Treat these as the definition of “LightCMS-ready.” Each one exists because breaking it produces a failure a writer cannot fix from the editor.
content/posts/is manageable as thecontentcollection; a project withsrc/posts/is manageable assrc. Hidden folders such as.githubare ignored. Content buried outside a top-level directory is invisible to the CMS.---YAML. The generator must accept YAML, not only TOML or JSON. Zola, Hugo, Jekyll, Eleventy, and Astro all accept YAML; Zine needs a conversion step.hello-world) gives a clean URL everywhere. An epoch filename (1792167272) gives an ugly URL and, in Jekyll, fails to load at all without thenodateplugin.title,description,date,draft, andtagswork across the templates and are the safest fields to depend on. Addkeywords,weight, or generator-specific fields only when that generator actually uses them.YYYY-MM-DDTHH:mm:ssZ. A generator that rejects a quoted date, or expects a local timezone, needs a test with a LightCMS-created file before the template is considered done.mise.tomlwith abuildtask and a CI workflow that runs that task from a clean checkout. The artifact path in CI must match the generator's real output directory.node_modules, no committed build output, no absolute paths. A template is a starting point someone else will copy.Route the request
Pick one primary route before editing. If the request is ambiguous, inspect the repository first; the presence of
hugo.toml,astro.config.mjs,_config.yml,eleventy.config.js,zola.toml,book.toml, or.smdfiles usually settles it.Choose the generator
Use the user's stated generator. If they have no preference, recommend based on the job rather than novelty.
content/public/urlbaseURLmust include the project path on GitHub Pagessrc/content/docs/dist/slugcontent/public/slug, orpathsort_by = "date"need testingsrc/_site/permalinkpathPrefixmust match the deploy path_posts/_site/permalinknodate.rbcontent/public/.smdis not Markdown; use the md2smd bridge or pick another generatorsrc/book/SUMMARY.mdSUMMARY.mdentry; front matter is not nativeBuild a template
mise.toml, CI workflow, and one sample post. Preserve unrelated user changes. If the repo already has a generator, customize it instead of replacing it.content→content/posts; Astrosrc→src/content/docs/blog; Jekyll_posts→ files directly in_posts. Write this mapping in the README.title,description,date,draft, andtagsin every sample post. Use ISO dates. Addkeywordswhen the generator emits meta keywords. Do not put Hugo-only fields in a non-Hugo template. If the generator expects taxonomies in a different shape (Zola nests them undertaxonomies), add a build-time mirror rather than making writers fill two fields; see the Zola reference._plugins/nodate.rbso arbitrary LightCMS filenames load. For Astro, either instruct writers to set a human slug or add agenerateId()that derives an ID fromdata.title. For Eleventy, add a computedpermalinkif the project should not expose filenames.mise.toml. Provide at leaststart/dev,build, and, where useful,install,index, anddeploy. Keep the task names consistent with the existing templates so contributors can move between repos.ghcr.io/jdx/misecontainer,mise trust,mise deps, and the samemise run builda contributor uses. Upload the generator's real output directory. Grant only the permissions the deploy target needs.Validate before handing off
Run the generator's build, then check:
draft: truehides a post;draft: falseshows it./.mise run buildworks from a fresh clone.node_modules,_site,public,dist,book, or.sass-cacheis committed.Run the bundled checker against the content root before the build. The script lives in this skill's
scripts/directory; use its absolute path, or copy it into the template if contributors should run it themselves:``bashnode /path/to/lightcms-skills/scripts/check-content.mjs content
or: node /path/to/lightcms-skills/scripts/check-content.mjs src
or: node /path/to/lightcms-skills/scripts/check-content.mjs _posts
mdBook only:
node /path/to/lightcms-skills/scripts/check-content.mjs src --allow-no-frontmatter
``It catches missing titles/descriptions, non-ISO dates, string drafts, string tags, and epoch filenames. It accepts TOML front matter because Hugo and Zola templates often start that way, but LightCMS writes YAML; test at least one YAML entry.
For a content-only change, run the same build and check the changed page. A content change that breaks the build is still a template bug, not a writer mistake.
Avoid these failure modes
slugorpermalinkfront matter field and expecting LightCMS to treat it as routing configuration. LightCMS preserves unknown fields through its additional-fields drawer, but the normal form does not own those keys and a writer may not see them. Prefer the filename or a generator-level rule.baseURLorbasethat only works at the domain root. GitHub Pages project sites live under/<repo>/; Cloudflare Pages and Vercel usually live at/.References
blogtemplatevariant)What a finished handoff looks like
Report the stack, the content path LightCMS will show, the front matter contract, the build command, the deploy target, and the verification you ran. If something could not be verified, say what it was and why. Do not claim a template is finished because the files exist; claim it when the build and the rendered pages have been checked.
.agents/skills/lightcms-skills/references/astro.md
Astro + Starlight Template Reference
The
astro_blogtemplate is a documentation-first starter with a small blog. It is the right choice when the user wants guides, docs, and a few posts in one site, or when they want Astro's component model and content collections.Layout
``text.
├── astro.config.mjs
├── package.json
├── public/favicon.svg
├── src/
│ ├── components/
│ │ ├── Button.astro
│ │ └── Footer.astro
│ ├── content.config.ts
│ ├── content/docs/
│ │ ├── index.mdx # splash home
│ │ ├── intro.md # a normal docs page
│ │ └── blog/
│ │ ├── first-post.md
│ │ └── second-post.md
│ └── styles/
│ ├── global.css
│ └── custom.css
├── .github/workflows/ci.yml
├── mise.toml
├── LICENSE
└── README.md
``LightCMS shows the top-level
srccollection. Writers work incontent/docs/blog. This is intentional: moving content to a rootposts/folder would require a custom content loader and would fight Starlight's conventions.Configuration
``js// astro.config.mjs
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
export default defineConfig({
site: "https://example.github.io/",
base: "/my-blog",
integrations: [
starlight({
title: "My Blog",
description: "A short description.",
customCss: ["./src/styles/global.css", "./src/styles/custom.css"],
pagefind: true,
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 3 },
pagination: true,
sidebar: [
{ label: "Start here", items: ["intro"] },
{ label: "Blog", autogenerate: { directory: "blog" } },
],
}),
],
});
``Change both
siteandbase:site: "https://<user>.github.io",base: "/<repo>".siteis the full origin,baseis"/"(or omitted).base: "/".A wrong
baseis the most common Astro deployment failure. Links generated by Starlight include the base automatically; hand-written absolute links such ashref="/intro/"do not. Useimport.meta.env.BASE_URLor Starlight's link helpers for hand-written links.Content and front matter
src/content.config.tsuses the Starlight loader and schema:``tsimport { defineCollection } from "astro:content";
import { docsLoader } from "@astrojs/starlight/loaders";
import { docsSchema } from "@astrojs/starlight/schema";
export const collections = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
};
``A post:
``markdowntitle: First Post
description: What this starter includes.
date: '2026-01-10T00:00:00Z'
draft: false
tags:
Body text.
``Starlight's schema requires
title;descriptionis used for SEO.draftis a native Starlight field:truekeeps the page out of production builds and autogenerated sidebars.date,tags, andkeywordsare not part of the default schema; if a custom page needs them, extend the schema so they are not stripped:``tsimport { z } from "astro/zod";
// src/content.config.ts
export const collections = {
docs: defineCollection({
loader: docsLoader(),
schema: docsSchema({
extend: z.object({
date: z.string().optional(),
tags: z.array(z.string()).default([]),
keywords: z.array(z.string()).default([]),
}),
}),
}),
};
``Do not promise a date-sorted blog unless you add the UI for it. Starlight does not render dates, tags, or a post list from this front matter by itself.
If the site is really a blog, either:
starlight-blogplugin, which adds post listings, dates, authors, tags, and RSS; orThe minimal template is a docs site with a blog folder, not a full blog engine.
URLs and slugs
Starlight derives the page ID from the file path:
``textsrc/content/docs/blog/hello-world.md → /blog/hello-world/
``LightCMS's default timestamp filename therefore becomes
/blog/1792167272/. Fix it in one of two ways:``tsdocsLoader({
generateId: ({ entry, data }) => {
const title = typeof data.title === "string" ? data.title : entry;
const slug = title
.toLowerCase()
.replace(/[^a-z0-9]+/g, "-")
.replace(/^-|-$/g, "");
const directory = entry.includes("/")
? entry.slice(0, entry.lastIndexOf("/") + 1)
: "";
return
${directory}${slug};},
});
``The directory prefix matters: returning only the title would turn
blog/hello-world.mdinto/hello-world/instead of/blog/hello-world/. The second option can collide when two posts share a title; append a short suffix if needed. It also makes the ID independent of the filename, which can surprise writers who rename files. Pick one rule and document it.Starlight also supports a
slugfront matter field to override the ID. LightCMS does not exposeslugas a normal field, so do not rely on writers filling it in.Drafts
Starlight honors
draft: truenatively: the page is available inastro devbut excluded fromastro build, and autogenerated sidebars leave it out of production. That matches LightCMS's draft flag, so the template can use it directly.A custom blog index that queries
getCollection("docs")still needs a filter if it should hide drafts during local development. The production build already excludes them.Do not add a second draft mechanism unless the template has a reason to; the native flag is the one LightCMS writes.
Build and CI
``tomlmise.toml
[tools]
node = "latest"
bun = "latest"
[settings]
experimental = true
[tasks]
install = "bun install"
start = "bun run dev"
build = "bun install && bun run build"
preview = "bun run preview"
deploy = "mise run build"
``bun run buildwritesdist/.``yamlname: ci
permissions:
contents: read
pages: write
id-token: write
on:
workflow_dispatch:
pull_request:
push:
jobs:
ci:
runs-on: ubuntu-latest
container:
image: ghcr.io/jdx/mise:2026.9.2
steps:
- uses: actions/checkout@main
- uses: actions/cache@main
with:
path: |
~/.cache/mise
~/.local/share/mise
key: mise-${{ runner.os }}
restore-keys: mise-${{ runner.os }}
- run: |
mise trust
mise deps
mise install
mise run build
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@main
with:
path: ./dist
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@main
``Starlight's
pagefind: truebuilds the search index duringastro build; do not add a separate index task unless the project also uses a custom Pagefind setup.Assets and styling
public/is copied as-is. Reference files with the base path, e.g./my-blog/favicon.svgorimport.meta.env.BASE_URL.src/styles/global.cssimports Tailwind in the org template.src/styles/custom.cssholds the Starlight CSS variables. Keep the light/dark pairs together.src/components/Footer.astrois wired throughcomponents.Footer. If you remove the file, remove the config entry.starlight-theme-exquisitusand Tailwind. Remove either dependency if the user wants a leaner site; the build must still pass.Cleanup before shipping
The org repository contains a stray
src/content/docs/blog_0/1792181567.mdand an emptyblog_0/.gitkeep. Remove them. Rename epoch-named sample files to human slugs. Check thatastro.config.mjsdoes not still point atlight-cms/astro_blogor theastro_blogbase path.Verify
``bashrm -rf dist node_modules
mise trust
mise run build
``Then check:
dist/index.htmlexists and renders the splash page.dist/blog/first-post/index.htmlexists.pagefind: true.datedoes not break the build; Starlight ignores it, but a custom schema might not..agents/skills/lightcms-skills/references/content-contract.md
The LightCMS Content Contract
This is the shared layer every template must satisfy. The SSG references assume these rules.
How LightCMS finds content
LightCMS does not use a fixed content root. When a repository is selected, it lists the repository root and treats each non-dot directory as a collection:
``textmy-site/
├── content/ → collection "content"
│ ├── posts/ → folder "posts" inside that collection
│ └── about.md
├── src/ → collection "src"
├── _posts/ → collection "_posts"
├── .github/ → ignored (starts with a dot)
└── README.md → not a collection
``The collection path is the directory name. Entries are addressed as:
``text//.md
``The default built-in collection is
posts, which resolves to a root-levelposts/directory. Other names are discovered from the repository, so a template does not have to create a rootposts/folder. What matters is that the content directory is top-level and visible.Choosing the collection name
Use the generator's natural content root unless there is a strong reason not to:
contentcontent/postssrcsrc/content/docs/blogcontentcontent/blogsrcsrc/posts_posts_postscontentcontent/blogsrcsrc(chapters listed inSUMMARY.md)Do not move a framework's content root just to make the collection name prettier. A
contentcollection with apostsfolder is understandable and keeps the SSG's conventions intact. Document the mapping in the README.File names and slugs
LightCMS always shows a Slug field. It defaults to a Unix timestamp:
``text1792167272.md
``That default is convenient for the CMS and bad for readers. A timestamp becomes the URL segment in Hugo, Zola, Eleventy, Jekyll, and Astro unless the template overrides it. It also makes the repository hard to browse.
Use a lowercase, hyphenated slug:
``texthello-world.md
writing-a-static-blog.md
``LightCMS validates slugs with lowercase letters, numbers, and hyphens only. It rejects slashes, spaces, uppercase letters, and punctuation.
What each generator does with a filename
hello-world.md/posts/hello-world/urlfront matter, orslug/blog/hello-world/slugfront matter ordocsLoader({ generateId })/blog/hello-world/slugorpathfront matter/posts/hello-world/permalinkfront matter or computed data/hello-world/permalinkfront matter or config defaultshello-world.htmlSUMMARY.mdand output configFor every one of these, the simplest reliable rule is: set a human slug when creating the entry. Do not build a template that depends on the timestamp default.
Jekyll is the exception that needs code
Jekyll's default post reader only accepts filenames shaped like
YYYY-MM-DD-title.md. A LightCMS entry namedhello-world.mdor1792167272.mdis skipped. Include this plugin, copied from thejekyll_blogtemplate:``ruby_plugins/nodate.rb
class Jekyll::PostReader
def read_posts(dir)
read_publishable(dir, "_posts", /.*.md$/)
end
def read_drafts(dir)
read_publishable(dir, "_drafts", /.*.md$/)
end
end
``The plugin accepts any
.mdfilename in_posts/. Keep the post layout in_config.ymldefaults so writers do not have to addlayout: postto every file:``yamldefaults:
path: ""
type: posts
values:
layout: post
``Front matter
LightCMS reads and writes YAML front matter. A normal entry looks like this:
``markdowntitle: A Human-Readable Title
description: One sentence used for SEO and cards.
date: '2026-10-14T10:00:00Z'
draft: false
tags:
keywords:
The body starts here.
``Fields that work everywhere
titledescriptiondatedrafttruehides the entry in generators that honor draftstagskeywordsFields to add only when the generator uses them
weightslugurlpermalinklayoutisCJKLanguage,headlesspublishDate,expiryDateDate rules
LightCMS normalizes dates to UTC and removes milliseconds:
``text2026-10-14T10:00:00Z
``Write dates in that shape. Avoid:
date: 2026-10-14) when the generator expects a datetime;YYYY/MM/DD;Test with a date that is near midnight UTC; a template that shifts the day is a bug.
Custom fields
LightCMS's editor has an additional-fields drawer for keys outside the built-in form. Those keys are preserved when the entry is saved. However, they are not part of the CMS's routing or validation. Use them for optional metadata, not for the only way a page gets a URL.
If a template depends on a custom key, add it to the sample posts and document it in the README. If the key is required, the build will fail when a writer omits it; prefer a generator default instead.
Content that is not a post
Not every Markdown file is an entry:
_index.mdis a section index in Hugo and Zola.index.mdmay be a bundle or a section page.SUMMARY.mdis mdBook navigation.README.mdat the root is project documentation._are ignored by Starlight'sdocsLoader..are ignored by LightCMS discovery.Put these files where the generator expects them, and explain in the README which files writers should not delete. Do not hide the section index from LightCMS if deleting it breaks the site.
Images and other assets
The templates use plain Markdown images and repo-relative assets:
``markdown``LightCMS can insert image URLs and can upload images depending on the deployment. Keep the path style consistent with the SSG:
static/images/...is served at/images/....static/images/...is served at/images/....src/assets/...is copied to/assets/...by the passthrough rule.public/...is served at the base path;src/assets/...is processed.assets/...is served at/assets/....src/.Always include alt text. A missing image should not break the build; use a normal Markdown image rather than a shortcode that only one generator understands.
Drafts and scheduling
draft: trueis the portable draft flag. The generator must actually honor it:draftis native; drafts are excluded unless--buildDrafts.draftis native; excluded unless--drafts.draftin the collection (the template does).draft: truein_postsis not the same as_drafts/; usepublished: falseor a collection filter if needed.draftis native; excluded from production builds and autogenerated sidebars, visible in dev. Filter a custom blog index if it should hide drafts locally.If the user asks for scheduled publishing, verify the generator's real mechanism. Do not imply that
publishDateworks in a generator that ignores it.The publishing loop
A LightCMS edit should produce this sequence:
.mdfile with YAML front matter to the selected branch.mise run buildproduces the site.A template is not finished until steps 3–5 work from a clean clone. Test the same path a writer will use: create a file with a human slug, a quoted ISO date,
draft: false, and a tag list; push it; confirm the page appears.Content-authoring checklist
When creating or fixing an entry:
titleis present and human-readable.descriptionis one sentence and useful in search results.dateis quoted ISO 8601 UTC.draftis a boolean, not a string.tagsis a YAML list, not a comma-separated string..agents/skills/lightcms-skills/references/deployment.md
Deployment Reference
The template's build command is the contract. Every host should run the same command a contributor runs locally, and every host should publish the generator's real output directory.
Output directories
mise run build(hugo)public/mise run build(astro build)dist/mise run build(zola build)public/mise run build(eleventy)_site/bundle exec jekyll build_site/mise run build(zine release -f)public/mise run build(mdbook build)book/A wrong publish directory is the most common “the build succeeded but the site is blank” failure.
Base path and URL
Set the site's base path before deploying:
https://<user>.github.io/<repo>/baseURLincludes/<repo>/; Astrobase: "/<repo>"; EleventypathPrefix: "/<repo>/"; Jekyllbaseurl: "/<repo>"; Zolabase_urlincludes/<repo>https://<user>.github.io/https://<project>.pages.dev/https://<project>.vercel.app/https://<project>.netlify.app/If assets 404 only on the deployed site, the base path is wrong. If they 404 only locally, the local server is not serving under the base path; test with the production-style command.
GitHub Pages with Actions
The org templates use a mise container and upload an artifact:
``yamlpermissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: ghcr.io/jdx/mise:2026.9.6
steps:
- uses: actions/checkout@main
- uses: actions/cache@main
with:
path: |
~/.local/share/mise/installs
~/.local/share/mise/cache
key: mise-${{ runner.os }}-${{ hashFiles('mise.toml') }}
restore-keys: mise-${{ runner.os }}-
- run: |
mise trust
mise deps
mise run build
- uses: actions/upload-pages-artifact@main
with:
path: ./public
- id: deployment
uses: actions/deploy-pages@main
``Requirements:
pages: writeandid-token: write.Pinning actions to a tag or commit SHA is safer than
@mainfor a template others will copy. The org templates use@mainfor freshness; a production template should pin.repository_dispatchfor split reposWhen content lives in a separate repository, the content repo can trigger the site build:
``yamlon:
repository_dispatch:
types: [content_update, blog_update]
``The content repo dispatches:
``bashgh api --method POST /repos///dispatches
-f event_type=content_update
``The token must be a repository secret with permission to dispatch. Document the secret name (
DEPLOYin the Zine template) and never commit it.Cloudflare Pages
Connect the repository in the Cloudflare dashboard:
mise run build, or the native command if the environment already has the tool.MISE_EXPERIMENTAL=trueif the project uses experimental mise features.Cloudflare Pages does not run the repository's GitHub Actions workflow; it runs its own build. Either keep both paths working or remove the unused workflow to avoid confusion.
For a project hosted at the root of
*.pages.dev, use a root base path. A custom domain is also a root path.Vercel
Vercel detects Astro, Eleventy, Hugo, and Jekyll. Set:
mise run build, or the native command.mise deps/mise installif the project depends on mise; otherwise the package manager's install.Vercel's build image may not have Hugo, Zola, or mdBook preinstalled. Use
miseor a custom install step, and test the first deploy rather than assuming the framework preset installs the binary.Netlify
Set:
mise run build.For Hugo, Netlify often has an older Hugo than the template expects. Pin the version with a
HUGO_VERSIONenvironment variable or use mise.Surge
The
blogtemplateuses Surge:``toml[tasks]
build = "hugo"
index = "npx pagefind --site public"
deploy = "surge publish ./public blogtemplate.surge.sh"
``SURGE_TOKENmust be a repository secret.CI hygiene
~/.local/share/mise,~/.cache/mise), not the site output.mise trustbeforemise run; a copied template has no trust entry.mise depsto install lockfile dependencies; usemise installfor the tools.concurrencyso two pushes do not race the same Pages deployment.node_modules, caches, or secrets in the artifact.secrets, never as a command-line literal.Verify the deployed result
After the first deploy:
localhostor the org's domain.404.htmlat the root).If a deploy fails, read the first error in the build log, not the last. A missing tool usually appears before the generator's own error.
.agents/skills/lightcms-skills/references/eleventy.md
Eleventy Template Reference
Eleventy is the choice when the user wants full templating control with very little JavaScript. The
eleventy_blogtemplate is a small Nunjucks site with a Markdown post collection.Layout
``text.
├── eleventy.config.js
├── package.json
├── src/
│ ├── _includes/
│ │ ├── base.njk
│ │ └── post.njk
│ ├── about.md
│ ├── blog.njk
│ ├── css/style.css
│ ├── index.njk
│ └── posts/
│ ├── posts.json # applies post.njk to every post
│ ├── first-post.md
│ └── second-post.md
├── .github/workflows/ci.yml
├── mise.toml
├── LICENSE
└── README.md
``LightCMS shows the top-level
srccollection; writers work in thepostsfolder.Configuration
``js// eleventy.config.js
export default function (eleventyConfig) {
eleventyConfig.addPassthroughCopy({ "src/css": "css" });
eleventyConfig.addPassthroughCopy({ "src/assets": "assets" });
eleventyConfig.addCollection("posts", (collectionApi) => {
return collectionApi
.getFilteredByGlob("src/posts/*.{md,njk,html}")
.filter((post) => !post.data.draft)
.sort((a, b) => a.date - b.date);
});
eleventyConfig.addFilter("readableDate", (date) => {
return new Date(date).toLocaleDateString("en-US", {
year: "numeric",
month: "long",
day: "numeric",
});
});
return {
dir: {
input: "src",
includes: "_includes",
output: "_site",
},
pathPrefix: "/eleventy_blog/",
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk",
};
}
``Change
pathPrefixto the real deploy path:"/<repo>/"."/".The templates use the
urlfilter for links, which appliespathPrefix. Hand-written absolute paths do not.Content and front matter
``markdowntitle: First Post
description: What this starter includes.
date: '2026-01-10T00:00:00Z'
draft: false
tags:
Body text.
``The directory data file applies the layout automatically:
``json{
"layout": "post.njk"
}
``A LightCMS-created file in
src/posts/inherits that layout without the writer addinglayoutto the front matter. Keep the data file when changing the post layout.tagsis an Eleventy concept as well as a content field. A list such astags: [intro, static-sites]creates Eleventy collections for those names. Thepostscollection here is built from the directory glob, not fromtags: posts, so writers do not need a special tag.URLs and slugs
Eleventy derives the URL from the file path:
``textsrc/posts/hello-world.md → /posts/hello-world/
``A timestamp filename becomes
/posts/1792167272/. Two ways to prevent that:src/posts/posts.11tydata.js:``jsexport default {
layout: "post.njk",
eleventyComputed: {
permalink: (data) => {
const source = data.slug || data.title || data.page.fileSlug;
const slug = String(source)
.toLowerCase()
.replace(/[^a-z0-9]+/g, "-")
.replace(/^-|-$/g, "");
return
/posts/${slug}/;},
},
};
``The computed permalink makes the URL follow the title. That is friendlier for writers but means changing a title changes a URL. Choose one rule and document it. If the project needs stable URLs, keep filename slugs.
LightCMS's
urlfield is not wired to Eleventy by default. If you want a manual override, readdata.urlin the computed permalink before falling back to the title.Drafts and dates
draft: true, so drafts do not appear in lists.eleventyExcludeFromCollectionsor move it outsidesrc/posts.dateaccepts ISO strings. The collection sorts ascending and the templates reverse the list for newest-first display.dategives the file's creation time, which can produce unstable ordering. Keep a date on every post.Build and CI
``tomlmise.toml
[tools]
"github:sass/dart-sass" = "latest"
bun = "latest"
[tasks]
install = "bun install"
start = "bun run dev"
build = "bun run build"
``bun run buildwrites_site/.``yamlname: github pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: ghcr.io/jdx/mise:2026.9.6
steps:
- uses: actions/checkout@main
- uses: actions/cache@main
with:
path: |
~/.local/share/mise/installs
~/.local/share/mise/cache
key: mise-${{ runner.os }}-${{ hashFiles('mise.toml') }}
restore-keys: mise-${{ runner.os }}-
- run: |
mise trust
mise deps
mise run install
mise run build
- uses: actions/upload-pages-artifact@main
with:
path: ./_site
- id: deployment
uses: actions/deploy-pages@main
``Templates and assets
src/_includes/base.njkowns the head, nav, and footer.src/_includes/post.njkwraps a post and links back to/blog/.src/blog.njkandsrc/index.njkreverse the collection for newest-first order.src/cssto/cssandsrc/assetsto/assets. Keep image URLs consistent with those paths.markdownTemplateEngine: "njk"means Nunjucks syntax inside Markdown is executed. That is useful but surprising; document it if writers use{{ }}in prose.Verify
``bashrm -rf _site node_modules
mise trust
mise run install
mise run build
``Then check:
_site/index.htmland_site/blog/index.htmlexist._site/posts/first-post/index.htmlexists.draft: truepost is absent from the lists.pathPrefix..agents/skills/lightcms-skills/references/hugo.md
Hugo Template Reference
Hugo is the safest default for large blogs and content-heavy sites. It reads YAML, TOML, or JSON front matter, builds in milliseconds, and needs no runtime.
Two variants in the
light-cmsorghugo_blogcontent/postslayouts/blogtemplatecontent/postStart from
hugo_blogunless the user asks for the richer blog. Do not copyblogtemplatewholesale into a new project without trimming its personal configuration.Layout of the minimal template
``text.
├── archetypes/default.md
├── content/
│ ├── _index.md
│ ├── about.md
│ └── posts/
│ ├── _index.md
│ ├── first-post.md
│ └── second-post.md
├── layouts/
│ ├── 404.html
│ ├── _default/
│ │ ├── baseof.html
│ │ ├── list.html
│ │ └── single.html
│ └── home.html
├── static/css/style.css
├── .github/workflows/ci.yml
├── hugo.toml
├── mise.toml
├── LICENSE
└── README.md
``The top-level collection LightCMS shows is
content; writers work in thepostsfolder. This is expected and does not need a rootposts/folder.Configuration
``tomlhugo.toml
baseURL = 'https://example.github.io/my-blog/'
languageCode = 'en-us'
title = 'My Blog'
[params]
description = 'A short description of the site.'
``baseURLis the most common deployment bug:https://<user>.github.io/<repo>/https://<user>.github.io/If the site is served under a project path, keep the path in
baseURL. Templates that hardcode/css/style.cssshould use Hugo'srelURLorrelPermalinkso the path works in both cases:
` `` ```htmlFront matter
Hugo accepts YAML, so a LightCMS-created file works:
``markdowntitle: First Post
description: What this starter includes.
date: '2026-01-10T00:00:00Z'
draft: false
tags:
Body text.
``The archetype can stay TOML (
+++) because Hugo accepts both formats per file:``toml+++
date = '{{ .Date }}'
draft = true
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+++
``Do not add
isCJKLanguage,headless, orweightto every post unless the templates use them. They are valid Hugo fields, but they add noise to the editor.URLs and slugs
By default, Hugo uses the filename as the slug:
``textcontent/posts/hello-world.md → /posts/hello-world/
``The filename is what LightCMS calls the entry's slug. Tell writers to replace the timestamp with a human slug. If a writer needs a different URL than the filename, Hugo supports
url:``yamlurl: /custom/path/
``urlis one of LightCMS's configured fields, so it survives an edit. Hugo also supportsslug, but LightCMS does not expose it by default; prefer the filename.Build and preview
``tomlmise.toml
[tools]
"github:sass/dart-sass" = "latest"
hugo = "latest"
bun = "latest"
[tasks]
start = "hugo server "
build = "hugo"
index = "bun x pagefind --site public"
``mise run startserves with live reload.mise run buildwritespublic/.mise run indexbuilds the Pagefind search index after a build. It is optional; remove the task and the CI step if the template does not need search.Pin versions if the template is meant to be stable for a long time. The org templates use
latestfor convenience; a production template should pin Hugo and test upgrades.CI for GitHub Pages
``yamlname: github pages
on:
push:
branches: [main]
workflow_dispatch:
repository_dispatch:
types: [content_update, blog_update]
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: ghcr.io/jdx/mise:2026.9.6
steps:
- uses: actions/checkout@main
- uses: actions/cache@main
with:
path: |
~/.local/share/mise/installs
~/.local/share/mise/cache
key: mise-${{ runner.os }}-${{ hashFiles('mise.toml') }}
restore-keys: mise-${{ runner.os }}-
- run: |
mise trust
mise deps
mise run build
mise run index
- uses: actions/upload-pages-artifact@main
with:
path: ./public
- id: deployment
uses: actions/deploy-pages@main
``The
repository_dispatchtrigger is for split content/site repositories: a content repo can dispatchcontent_updateto the site repo. Remove it if the site is a single repository.The
blogtemplatevariantUse it only when the user wants a fuller personal blog. Its additional pieces are:
frontmatter.jsonand.frontmatter/for the Front Matter VS Code/Cursor extension;archetypes/posts.mdwithtoc,images,tags;content/post/(singular) andcontent/test/sample folders;assets/css/with Sass;layouts/partials/andlayouts/shortcodes/for callouts and buttons;mise.tomltasks forstart,build,index, and a Surge deploy;utterancescomments andgoatcounteranalytics, both requiring configuration.Before reusing it:
baseURLwith the real domain. The template usesbaseUrl; normalize it to Hugo's documentedbaseURL.SURGE_TOKENas a repository secret. Do not commit the token.frontmatter.jsononly if the user actually edits in VS Code. LightCMS does not read it.Verify
``bashrm -rf public resources
mise trust
mise run build
``Then check:
public/index.htmllinks to/posts/.public/posts/first-post/index.htmlexists.draft: trueis absent frompublic/./.public/index.xmlexists: Hugo emits RSS for the home page and sections by default, and the base layout links the alternate output. If a site disables RSS, remove the feed link rather than leaving a dead one../public..agents/skills/lightcms-skills/references/jekyll.md
Jekyll Template Reference
Jekyll is the classic Ruby generator with a long GitHub Pages history. It is a good fit when the user wants a familiar blog structure, a simple Liquid theme, and an RSS feed with little configuration.
The
jekyll_blogtemplate also contains the compatibility plugin that makes Jekyll accept LightCMS filenames.Layout
``text.
├── _config.yml
├── _layouts/
│ ├── default.html
│ └── post.html
├── _plugins/nodate.rb
├── _posts/
│ ├── first-post.md
│ └── second-post.md
├── assets/css/style.css
├── about.md
├── index.md
├── Gemfile
├── Gemfile.lock
├── compose.yml
├── .github/workflows/ci.yml
├── LICENSE
└── README.md
``LightCMS shows the top-level
_postscollection. Post files live directly in_posts/.The filename problem
Jekyll's default post reader only recognizes:
``text_posts/2026-01-10-hello-world.md
``It ignores
_posts/hello-world.mdand_posts/1792167272.md. LightCMS creates the latter by default and a human slug creates the former, so a stock Jekyll site silently drops LightCMS posts.The template fixes this with
_plugins/nodate.rb:``rubyclass Jekyll::PostReader
def read_posts(dir)
read_publishable(dir, "_posts", /.*.md$/)
end
def read_drafts(dir)
read_publishable(dir, "_drafts", /.*.md$/)
end
end
``Keep the file. Without it, the template is not LightCMS-compatible.
GitHub Pages caveat
GitHub Pages' built-in Jekyll build runs in safe mode and does not load
_plugins/. The org template avoids that by building in ajekyll/jekyllcontainer and uploading the artifact, so the plugin runs. If the user chooses GitHub Pages' automatic Jekyll build instead, the plugin will not load; use the Actions workflow or a date-prefixed slug convention.Configuration
``yaml_config.yml
title: My Blog
description: A short description.
baseurl: /my-blog
url: https://example.github.io
markdown: kramdown
plugins:
defaults:
scope:
path: ""
type: posts
values:
layout: post
``baseurlmust start with/and match the project path on GitHub Pages.urlis the origin only.layout: postis applied by default so LightCMS entries do not need a layout field.jekyll-feedgenerates/feed.xmland thefeed_metatag in the default layout adds the link.Add
permalink: /:title/to the post defaults if the site should not expose dates in URLs:``yamldefaults:
path: ""
type: posts
values:
layout: post
permalink: /:title/
``Test the result. Jekyll's
:titleplaceholder is derived from the filename, so a human slug gives a clean URL.Front matter
``markdowntitle: First Post
description: What this starter includes.
date: '2026-01-10T00:00:00Z'
draft: false
tags:
Body text.
``Jekyll uses
datefor ordering. The quoted ISO string is valid.Jekyll's
draftkey is not the same as its_drafts/folder. Adraft: truepost in_posts/is still built unless the theme or a plugin filters it. If the template promises drafts, use one of these instead:_drafts/and build with--draftsonly for previews;published: false(Jekyll's native flag);site.postsin Liquid.Do not claim
draft: truehides a post without implementing it.Build and preview
``bashbundle install
bundle exec jekyll serve # http://localhost:4000
bundle exec jekyll build # _site/
``The template also has a Docker Compose file:
``yamlservices:
jekyll:
image: docker.io/jekyll/jekyll:latest
working_dir: /srv/jekyll
ports:
- "4000:4000"
- "35729:35729"
command: bundle exec jekyll build --incremental
volumes:
- .:/srv/jekyll:Z
``compose.ymlbuilds rather than serves; addbundle exec jekyll serve --host 0.0.0.0if the container should serve the site.CI
``yamlname: github pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: docker.io/jekyll/jekyll:latest
steps:
- uses: actions/checkout@main
- uses: actions/cache@main
with:
path: /srv/jekyll
key: jekyll-${{ runner.os }}-${{ hashFiles('Gemfile.lock') }}
restore-keys: jekyll-${{ runner.os }}-
- run: bundle exec jekyll build --incremental
- uses: actions/upload-pages-artifact@main
with:
path: ./_site
- id: deployment
uses: actions/deploy-pages@main
``The
jekyll/jekyllimage includes the toolchain, so this workflow does not need mise. If the project uses mise for Ruby, switch to the mise container and run the samebundle execcommand.Templates and assets
_layouts/default.htmlowns the head, nav, footer, andfeed_meta._layouts/post.htmlrenders the title, date, description, and body.index.mdloopssite.posts;about.mdusespermalink: /about/.assets/css/style.cssis plain CSS. Reference it withrelative_urlsobaseurlis respected.assets/are served under the base URL; userelative_urlfor hand-written paths.Verify
``bashrm -rf _site .jekyll-cache
bundle install
bundle exec jekyll build
``Then check:
_site/index.htmllists both sample posts._site/first-post/index.htmlexists with the human slug.hello-world.mdis picked up (the plugin works)._site/feed.xmlexists.published: falsepost is absent.baseurl, not only at the domain root..agents/skills/lightcms-skills/references/mdbook.md
mdBook Template Reference
mdBook is for documentation books, not blogs. It renders a
SUMMARY.md-driven set of Markdown chapters into a static book. Themdbooktemplate is intentionally tiny, and it exposes the weakest LightCMS fit of the group: mdBook has no native front matter.Layout
``text.
├── book.toml
├── src/
│ ├── SUMMARY.md
│ └── chapter_1.md
├── .github/workflows/ci.yml
├── mise.toml
├── LICENSE
└── README.md
``LightCMS shows the top-level
srccollection. Writers can editchapter_1.mdandSUMMARY.md, but new chapters must be added toSUMMARY.mdor they will not appear in the book.Configuration
``tomlbook.toml
[book]
title = "My Book"
description = "A short description."
authors = ["Your Name"]
``Output goes to
book/by default. Changebuild.build-dironly if CI and the README are updated together.Navigation is the contract
src/SUMMARY.mdis not optional. It is the table of contents and the build manifest:``markdownSummary
``A new
src/getting-started.mdis invisible until the summary lists it:``markdown``If the template promises that LightCMS writers can add chapters without touching code, add a pre-build step that updates
SUMMARY.md. Do not claim it works when the writer still has to edit the summary by hand.A safe convention for a small book is to make the summary part of the writer's workflow and document it in the README:
src/my-chapter.md.- [My Chapter](./my-chapter.md)toSUMMARY.md.Front matter does not exist
mdBook renders the chapter Markdown as-is. A LightCMS-created file starts with:
``markdowntitle: My Chapter
date: '2026-10-14T10:00:00Z'
draft: false
Body.
``mdBook will render the
---lines as horizontal rules and the keys as text. That is a visible bug.If the template must be edited through LightCMS, add a pre-build normalization step. A small Node script can copy
src/to a temporary directory, remove a leading YAML block from each.md, and point mdBook at the copy:``js// scripts/strip-frontmatter.mjs
import { cp, readdir, readFile, writeFile } from "node:fs/promises";
import { join } from "node:path";
async function strip(dir) {
for (const entry of await readdir(dir, { withFileTypes: true })) {
const path = join(dir, entry.name);
if (entry.isDirectory()) {
await strip(path);
continue;
}
if (!entry.name.endsWith(".md")) continue;
const source = await readFile(path, "utf8");
const cleaned = source.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/, "");
await writeFile(path, cleaned);
}
}
await cp("src", ".build-src", { recursive: true });
await strip(".build-src");
``Then set
[book] src = ".build-src"inbook.tomland make the build task run the script beforemdbook build. Add.build-src/to.gitignore. The alternative is to accept that mdBook is not a LightCMS authoring target and use it only for read-only docs.Do not add YAML front matter to the sample chapters and then ship without a strip step; the rendered page will show it.
Build and CI
``tomlmise.toml
[tools]
mdbook = "latest"
[tasks]
build = "mdbook build"
````yamlname: github pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: ghcr.io/jdx/mise:2026.9.6
steps:
- uses: actions/checkout@main
- uses: actions/cache@main
with:
path: |
~/.local/share/mise/installs
~/.local/share/mise/cache
key: mise-${{ runner.os }}-${{ hashFiles('mise.toml') }}
restore-keys: mise-${{ runner.os }}-
- run: |
mise trust
mise deps
mise run build
- uses: actions/upload-pages-artifact@main
with:
path: ./book
- id: deployment
uses: actions/deploy-pages@main
``What mdBook does not give you
src/.If the user asks for a blog with tags, dates, and drafts, steer them to Hugo, Zola, Eleventy, or Astro. Use mdBook when the job is a book with a table of contents.
Verify
``bashrm -rf book .build-src
mise trust
node scripts/check-content.mjs src --allow-no-frontmatter
mise run build
``Then check:
book/index.htmlexists.SUMMARY.mdhas a page../book..agents/skills/lightcms-skills/references/quality-checklist.md
Template Quality Checklist
Use this after building or porting a template, and before calling the work finished. A template is a product someone else will copy; “it builds on my machine” is not the bar.
Definition of done
draft: false, tag list) builds and appears at the expected URL.draft: trueentry is hidden, or the README says drafts are not supported./..gitignoreare present.Automated checks
Run these from the repository root.
``bash1. Front matter and slug contract. Use the real content root.
Run the script from this skill's scripts/ directory, or copy it into
the template first.
node /path/to/lightcms-skills/scripts/check-content.mjs content
or: node /path/to/lightcms-skills/scripts/check-content.mjs src
or: node /path/to/lightcms-skills/scripts/check-content.mjs _posts
mdBook only:
node /path/to/lightcms-skills/scripts/check-content.mjs src --allow-no-frontmatter
2. Clean build.
rm -rf node_modules _site public dist book .build-src
mise trust
mise run build
3. Confirm generated output is ignored.
git status --short
``The checker is a fast heuristic, not a Markdown parser. It checks YAML/TOML front matter, required fields, ISO dates, boolean drafts, list tags, and epoch filenames. It does not validate MDX syntax, shortcodes, or rendered links.
Per-generator smoke test
After the build, confirm the output exists at the path the deploy workflow uploads:
public/test -f public/index.html && test -f public/posts/first-post/index.htmldist/test -f dist/index.html && test -f dist/blog/first-post/index.htmlpublic/test -f public/index.html && test -f public/blog/first-post/index.html_site/test -f _site/index.html && test -f _site/posts/first-post/index.html_site/test -f _site/index.html && test -f _site/first-post/index.htmlpublic/test -f public/index.html && test -f public/blog/first-post/index.htmlbook/test -f book/index.html && test -f book/chapter_1.htmlThe exact post path depends on the slug and permalink rule. Adjust the filename, not the generator's output directory.
Content contract review
content,src,_posts, orposts).1792167272.mdsamples remain.titleis present and not a filename placeholder.descriptionis a real sentence, not “TODO.”dateis ISO 8601. LightCMS will normalize a date-only value to a UTC datetime.draftis a boolean. A string such asdraft: "false"is a bug.tagsis a list. A single string works in some generators but is not portable.taxonomies.tags), the build mirrors the LightCMS field or the README says tag pages are not supported.For Jekyll specifically:
_plugins/nodate.rbexists and is loaded by the build path (not GitHub Pages' safe-mode builder).layout: postis applied through_config.ymldefaults.baseurlstarts with/and matches the deploy path.For mdBook specifically:
SUMMARY.md.book/.Deployment review
mise run buildas a contributor.contents: read,pages: write,id-token: write).localhostor the template author's domain.Accessibility and SEO
langattribute.<title>and a useful meta description.h1per page.Repository hygiene
README.mdexplains how to preview, build, and deploy.LICENSEmatches the intended license (the org templates use Apache-2.0)..gitignorecovers the generator output, dependencies, caches, and local env files.mise.tomlhasstart/devandbuildtasks; optional tasks are documented.node_modules,_site,public,dist,book, or.sass-cacheis tracked.Common findings
tagsat build time, or document that tag pages are unsupported_plugins/nodate.rband build outside safe mode---andtitle:draftHandoff report
State:
Do not end with “the template is ready” unless the build and the rendered pages were actually checked.
.agents/skills/lightcms-skills/references/zine.md
Zine Template Reference
Zine (
zine-ssg) is a niche static site generator built around SuperMD (.smd), SuperHTML (.shtml), and Ziggy schemas. It is powerful, but it is not a drop-in Markdown target for LightCMS. Use this reference only when the user explicitly wants Zine, or when maintaining the existingzine_blog/zine_contentpair.Why Zine is different
LightCMS writes Markdown (
.md) with YAML front matter. Zine reads SuperMD (.smd) with Ziggy-style front matter:``smd.title = "First Post",
.date = .date("2026-01-10T00:00:00"),
.layout = "post.shtml",
``Those are not interchangeable. The org solves the gap with a two-repository pipeline:
``textzine_content/ zine_blog/
content/posts/.md ──► scripts/fetch.js
content/notes/.md ├─ clones the content repo
content/devlogs/*.md ├─ converts .md → .smd with md2smd
├─ injects .layout
└─ zine release -f → public/
``LightCMS edits the content repo. The site repo is a build target triggered by
repository_dispatch.The two repositories
zine_content``text.
├── content/
│ ├── posts/.gitkeep
│ ├── notes/.gitkeep
│ └── devlogs/.gitkeep
├── .github/workflows/ci.yml
├── mise.toml
└── LICENSE
``The workflow dispatches a build to the site repo:
``yamlname: build and deploy
permissions:
contents: read
pull-requests: write
on:
push:
pull_request:
workflow_dispatch:
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger deploy
env:
GH_TOKEN: ${{ secrets.DEPLOY }}
run: |
gh api
--method POST
/repos///dispatches
-f event_type=content_update
``DEPLOYmust be a token that can dispatch to the site repo. Document the secret; do not commit it.zine_blog``text.
├── content/
│ ├── index.smd
│ ├── about.smd
│ ├── .smd.ziggy-schema
│ ├── blog/
│ ├── devlog/
│ └── notes/
├── layouts/
│ ├── base? (project-specific)
│ ├── index.shtml
│ ├── blog.shtml
│ ├── post.shtml
│ ├── page.shtml
│ └── *.xml
├── assets/
│ ├── style.css
│ ├── highlight.css
│ └── Temml math assets
├── scripts/fetch.js
├── public/
├── mise.toml
└── .github/workflows/ci.yml
``The fetch-and-convert script
scripts/fetch.jsis the bridge. It:.mdto the target path as.md;md2smdon it, producing.smd;.layout = "<layout>",if the converted front matter lacks one;.md.The mapping in the org template:
``jsconst DIRECTORY_MAPPINGS = [
{ src: "content/posts", dest: "content/blog", layout: "post.shtml" },
{ src: "content/blog", dest: "content/blog", layout: "post.shtml" },
{ src: "content/devlogs", dest: "content/devlog", layout: "page.shtml" },
{ src: "content/notes", dest: "content/notes", layout: "page.shtml" },
];
``Change
REPO_URL,REPO_BRANCH, and the mappings for the new site. The script hardcodeslight-cms/zine_content; leaving it in a template is a bug.Front matter and schema
content/.smd.ziggy-schemadefines the accepted page fields. The org schema includes:title,descriptiondate(RFC3339 string or Unix timestamp)authors,tagslayoutaliases,alternativestranslation_keydraftforbid_subsectionscustom(arbitrary map)If the content repo starts producing fields the schema does not define, the convert step or the Zine build may fail. Decide explicitly what to do with LightCMS's default
isCJKLanguage,headless,weight, andkeywordsfields. Either:fetch.jsafter conversion;Do not assume unknown YAML keys are harmless; test the converted
.smd.LightCMS usability
content, so LightCMS shows one collection withposts,notes, anddevlogsfolders. That part works.[]($section.id('about'))and$link.page(...)is not Markdown; writers can type it, but the visual editor may not preserve it..smdfiles are not editable as normal Markdown in LightCMS. The content repo must hold.md; the site repo holds.smd.md2smdcopies referenced images when they are in the source directory; verify the paths survive conversion.draft, but the conversion must preserve it and the layout must honor it.For a normal user who just wants a blog, recommend Hugo, Astro, Zola, Eleventy, or Jekyll instead. The Zine pipeline is worth it only when the user values Zine's SuperHTML model enough to maintain two repos and a conversion script.
Build
``tomlmise.toml
[tools]
"github:kristoff-it/ziggy" = "latest"
"github:kristoff-it/zine" = "latest"
"github:pratyay360/md2smd" = "latest"
node = "latest"
superhtml = "latest"
[settings]
experimental = true
[tasks.fetch]
run = "node scripts/fetch.js"
[tasks.build]
run = ["mise fetch", "zine release -f", "npx -y pagefind --site public"]
``zine release -fwritespublic/. The org repo commitspublic/; for a template, add it to.gitignoreand let CI publish it. Committed output hides broken builds.CI
The site workflow listens for
repository_dispatchevents from the content repo:``yamlon:
push:
branches: [main]
workflow_dispatch:
repository_dispatch:
types: [content_update, blog_update]
``Then it runs
mise trust,mise deps,mise install,mise run build, and uploads./publicto GitHub Pages. The content repo's dispatch is what makes a LightCMS save go live.Verify
``bashrm -rf public
mise trust
mise fetch
mise run build
``Then check:
.smdexists for each.mdin the content repo..layoutline is present.public/index.htmland a post page exist.REPO_URLandREPO_BRANCHpoint at the user's repos, not the org examples..agents/skills/lightcms-skills/references/zola.md
Zola Template Reference
Zola is a single Rust binary with no runtime, built-in Sass, search index, feeds, and syntax highlighting. It is a good fit for users who want a fast blog without a Node or Ruby toolchain.
Layout
``text.
├── content/
│ ├── _index.md
│ ├── about.md
│ └── blog/
│ ├── _index.md
│ ├── first-post.md
│ └── second-post.md
├── templates/
│ ├── 404.html
│ ├── base.html
│ ├── index.html
│ ├── page.html
│ └── section.html
├── static/css/style.css
├── .github/workflows/ci.yml
├── zola.toml
├── mise.toml
├── LICENSE
└── README.md
``LightCMS shows the top-level
contentcollection; writers work in theblogfolder.Configuration
``tomlzola.toml
base_url = "https://example.github.io/my-blog"
title = "My Blog"
description = "A short description."
compile_sass = true
build_search_index = true
generate_feeds = true
feed_filenames = ["atom.xml"]
[[taxonomies]]
name = "tags"
[markdown]
[markdown.highlighting]
theme = "catppuccin-mocha"
[extra]
``base_urlmust be the full site root, including the project path on GitHub Pages. Do not add a trailing slash if the rest of the config is consistent; Zola normalizes it.Add
[[taxonomies]]only if the template has a tags page or renders tag links. A taxonomy without a template does not add much.Front matter
Zola supports TOML front matter with
+++and YAML front matter with---. LightCMS writes YAML, so the template should use YAML for entries that writers edit:``markdowntitle: First Post
description: What this starter includes.
date: 2026-01-10T00:00:00Z
draft: false
tags:
Body text.
``The section index:
``markdowntitle: Blog
description: All posts.
sort_by: date
``sort_by = "date"means a page without adateis not rendered in that section. Test every sample post with a date.Date compatibility
Zola's documentation says dates in TOML must not be quoted. YAML is supported for porting legacy content, but the date type still matters. LightCMS writes a quoted ISO string such as:
``yamldate: '2026-10-14T10:00:00Z'
``A quick build with a current Zola release accepted that exact YAML and rendered the page at
/blog/hello-world/. Still run the same test with the version pinned inmise.toml, because the date parser is the kind of thing that changes between releases. If the quoted date is rejected, choose one of these fixes:Do not assume it works because the site builds with a hand-written, unquoted date.
Tags are a shape mismatch
LightCMS writes tags as a top-level list:
``yamltags:
``Zola reads taxonomy values from a nested table:
``yamltaxonomies:
tags:
- lightcms
- zola
``A page with only the LightCMS-shaped
tagslist builds, but it does not populate Zola's tag pages. If the template exposes a tags page, pick one of these approaches:tagsintotaxonomies.tagsand run it beforezola build. This keeps the writer's LightCMS form simple and lets Zola render tag pages. Make the script idempotent; it rewrites generated front matter only when the tags change.tagslist as metadata, do not configure a Zola taxonomy, and do not promise tag browsing. This is the simpler option for a minimal starter.taxonomiesas an additional LightCMS field. This works only if writers remember to use the additional-fields drawer; do not make it the default.Do not ship TOML sample posts with
[taxonomies]and call the template LightCMS-ready. LightCMS writes YAML with a top-leveltagslist, so the sample would not match what a writer actually creates.URLs and slugs
Zola derives the output path from the filename unless front matter says otherwise:
``textcontent/blog/hello-world.md → /blog/hello-world/
``Supported overrides:
``yamlslug: hello-world
or
path: blog/hello-world
``slugis the safer override because it keeps the section path.pathreplaces the section path entirely.LightCMS does not expose either field by default. It preserves them through the additional-fields drawer, but do not make routing depend on a writer remembering to use the drawer. The reliable rule is still: use a human filename slug.
A timestamp filename (
1792167272.md) becomes/blog/1792167272/.slugify.paths = "on"does not turn a timestamp into a title.Dates from filenames
Zola has a useful behavior that other generators lack: a filename beginning with
YYYY-MM-DDsupplies the page date and is removed from the URL:``textcontent/blog/2026-01-10-hello-world.md → /blog/hello-world/
``LightCMS's slug validator allows this shape, so a writer can use
2026-01-10-hello-worldas the slug and get both a clean URL and a date. This is optional; the front matter date is still the source of truth.Build, preview, and search
``tomlmise.toml
[tools]
zola = "latest"
bun = "latest"
[tasks]
start = "zola serve"
build = "zola build"
index = "bun x pagefind --site public"
``mise run startserves with live reload.mise run buildwritespublic/.mise run indexadds Pagefind search over the built HTML.Zola also has
build_search_index = true, which creates its own search index. If Pagefind is enabled, decide which search UI the template actually ships; having two indexes is unnecessary.CI for GitHub Pages
``yamlname: github pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: ghcr.io/jdx/mise:2026.9.6
steps:
- uses: actions/checkout@main
- uses: actions/cache@main
with:
path: |
~/.local/share/mise/installs
~/.local/share/mise/cache
key: mise-${{ runner.os }}-${{ hashFiles('mise.toml') }}
restore-keys: mise-${{ runner.os }}-
- run: |
mise trust
mise deps
mise install
mise run build
mise run index
- uses: actions/upload-pages-artifact@main
with:
path: ./public
- id: deployment
uses: actions/deploy-pages@main
``If the template has no Pagefind UI, remove
mise run indexfrom CI. A missing index is better than a failing deploy.Templates and assets
templates/base.htmlowns the head, nav, and footer. Keep the title/description blocks in the child templates.get_url(path="css/style.css")so the base path is respected.templates/section.htmllistssection.pages;sort_byin the section controls order.templates/404.htmlis copied topublic/404.htmlby Zola.static/css/style.cssis plain CSS. Do not add a Sass build unlesscompile_sassis set and the file lives undersass/.Verify
``bashrm -rf public
mise trust
mise run build
``Then check:
public/index.htmllinks to/blog/.public/blog/first-post/index.htmlexists.draft: trueis absent.public/atom.xmlexists if feeds are enabled.base_urldoes not leak another project's path.newsletter-newsy commentedon Oct 30, 2026
New Post:
content/misc/1793361192.mdcontent/misc/1793361192.md
title: Best way to manage a documentation site
description: Best way to manage a documentation site in 2026 - 2027
date: '2026-10-30T11:53:00Z'
draft: false
tags:
isCJKLanguage: false
headless: false
Managing and writing documentation for whatever you're building is just as important as building the product itself.
For documentation, developers generally gravitate towards solutions like Astro Starlight, Hugo, VitePress, and Eleventy. And when it comes to writing the actual content, tools like Obsidian are often the go to choices.
But here's something I've been thinking about:
We increasingly rely on AI copilots to help us write, debug, and ship code. So why not bring that same experience to documentation?
Why should writing and maintaining docs still feel like a completely separate, manual workflow?
Imagine having a copilot that aids you with small fixes and typos, helps you write and refine content, keeps things organised, and makes maintaining docs as smooth as developing the product itself.
Documentation deserves the same developer experience we have come to expect from programming.
docsy or 11ty are go to option for majority of the people when it comes to writing documentation.
And all those uses front matter schema. So, why not using the same tool you love writing your blogs in.
newsletter-newsy commentedon Oct 31, 2026
New Post:
content/misc/1793013563.mdcontent/misc/1793361192.md.templates-legacy/404.html.templates-legacy/base.html.templates-legacy/index.html.templates-legacy/page.html.templates-legacy/section.html.templates-legacy/tags/list.html.templates-legacy/tags/single.htmlcontent/search.mdtemplates/search.htmltemplates/article.htmltemplates/partials/extra_features.htmltemplates/partials/nav.htmlcontent/misc/1793013563.md
title: cloudflare pages vercel netlify which one is better
description: cloudflare pages vercel netlify which one is better
date: '2026-10-26T11:19:00Z'
draft: false
tags:
isCJKLanguage: false
headless: false
For most modern web projects, Cloudflare Pages is the best choice for static sites, Vercel is the best for server rendered ones, and Netlify is the all rounder. if you value its integrated web development workflows. There is no universal winner, but for your kind of projects, I'd lean toward Cloudflare Pages for static sites and Vercel for server rendered applications.
Cloudflare Pages vs. Vercel vs. Netlify
1. Cloudflare Pages
Best for static sites
Fast global delivery, generous static hosting capabilities, and a strong ecosystem with Workers, R2, D1, and other edge services.
Best for: blogs, documentation, landing pages, static sites, and frontend apps with APIs hosted separately.
Main trade-off: dynamic applications often require Cloudflare Workers, and its runtime has compatibility differences from a conventional Node.js server.
2. Vercel
Best for server rendered apps
Excellent integration with massive number of tech stack like go, jekyll, fastapi etc etc , preview deployments, server rendering, image optimization, and a polished developer experience. Vercel free tier can’t use the hobby tier for commercial use cases. Vercel is generous about the number of server-less function invocations or bandwidth . But in the paid plan bandwidth costs can go higher in an exponential manner.
3. Netlify
A mature platform with Git-based deployments, deploy previews, serverless functions, and useful integrated web development workflows.
Best for: static sites, Astro, Jamstack projects, and teams that appreciate a unified hosting workflow.
Main trade-off: it has less of a compelling advantage over Cloudflare for simple static hosting or Vercel for Next.js-first development.
Cloudflare's static asset requests are free and unlimited on Pages, while Vercel has plan based allowances and usage charges. Netlify uses a credit-based model for deploys, bandwidth, requests, and compute. Check the current plan details before committing.
content/misc/1793361192.md
title: Best way to manage a documentation site
description: Best way to manage a documentation site in 2026 - 2027
date: '2026-10-30T11:53:00Z'
draft: false
tags:
isCJKLanguage: false
headless: false
Managing and writing documentation for whatever you're building is just as important as building the product itself.
For documentation, developers generally gravitate towards solutions like Astro Starlight, Hugo, VitePress, and Eleventy. And when it comes to writing the actual content, tools like Obsidian are often the go to choices.
But here's something I've been thinking about:
We increasingly rely on AI copilots to help us write, debug, and ship code. So why not bring that same experience to documentation?
Why should writing and maintaining docs still feel like a completely separate, manual workflow?
Imagine having a copilot that aids you with small fixes and typos, helps you write and refine content, keeps things organised, and makes maintaining docs as smooth as developing the product itself.
Documentation deserves the same developer experience we have come to expect from programming.
docsy or 11ty are go to option for majority of the people when it comes to writing documentation.
And all those uses front matter schema. So, why not using the same tool you love writing your blogs in.
.templates-legacy/404.html
<!doctype html>
<title>Page not found | {{ config.title }}</title>404: Page not found
That page doesn't exist. Go home.
Written with LightCMS, a Git based CMS for static sites. Docs
.templates-legacy/base.html<!doctype html>
<title>{% block title %}{{ config.title }}{% endblock title %}</title> <script src="{{ get_url(path=" pagefind/pagefind-component-ui.js") }}" type="module"></script> <script>(function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-NQ3CNDNM');</script> <script type="application/ld+json"> {% block jsonld %}{ "@context": "https://schema.org", "@type": "WebSite", "name": {{ config.title | json_encode() | safe }}, "url": {{ config.base_url | json_encode() | safe }}, "description": {{ config.description | json_encode() | safe }}, "inLanguage": "en", "publisher": { "@type": "Organization", "name": "LightCMS", "url": "https://www.lightcms.me/", "sameAs": ["https://www.lightcms.me/", "https://github.com/light-cms", {{ config.extra.source_repo | json_encode() | safe }}, "https://x.com/{{ config.extra.twitter_username }}", "https://bsky.app/profile/{{ config.extra.bluesky_username }}", "https://www.lightcms.me/docs"] } }{% endblock jsonld %} </script> <script type="text/javascript"> ((c, l, a, r, i, t, y) => { c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) }; t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i; y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y); })(window, document, "clarity", "script", "z03gl17xi6"); </script>{% block jsonld_extra %}{% endblock jsonld_extra %}
{% block head_extra %}{% endblock head_extra %}
<pagefind-config bundle-path="{{ get_url(path=" pagefind") }}/">
{% block content %}{% endblock content %}Written with LightCMS, a Git based CMS for static sites. Docs · Source code · GitHub · X · Bluesky · RSS
Built with Zola
.templates-legacy/index.html{% extends "base.html" %}
{% block title %}LightCMS Blog: Static Sites, Git Backed CMS, and Markdown Publishing{% endblock title %}
{% block description %}Practical writing on static sites, Git based content, and Markdown publishing, from the team behind LightCMS.{% endblock description %}
{% block og_title %}LightCMS Blog: Static Sites, Git Backed CMS, and Markdown Publishing{% endblock og_title %}
{% block og_description %}Practical writing on static sites, Git based content, and Markdown publishing, from the team behind LightCMS.{% endblock og_description %}
{% block tw_title %}LightCMS Blog: Static Sites, Git Backed CMS, and Markdown Publishing{% endblock tw_title %}
{% block tw_description %}Practical writing on static sites, Git based content, and Markdown publishing, from the team behind LightCMS.{% endblock tw_description %}
{% block content %}
Git based CMS for static sites
Write in a real editor, publish to your own repository.
LightCMS is a visual workspace in front of a repository you own. Write Markdown, publish with one click, and let your existing pipeline ship it. No database, no vendor, no lock-in.
LightCMS Read the docs Read the blog
Git based by default
Every post is a Markdown file with front matter in your own repository. You get full history, review, and rollback, with no vendor lock-in.
A beautiful editor
A distraction free writing experience designed to help you focus on your ideas.
Publish and distribute
Draft with AI copilot, dictate with Whisper or wit.ai, and send newsletters through Newsy, which turns GitHub issues into a mailing list.
Latest posts
{% set blog = get_section(path="blog/_index.md") %} {% set_global latest = blog.pages %} {% for extra_section_path in blog.extra.include_sections | default(value=[]) %} {% set extra_section = get_section(path=extra_section_path) %} {% set_global latest = [...latest, ...extra_section.pages] %} {% endfor %} {% set latest = latest | sort(attribute="date") | reverse %}{% for post in latest %}{% if loop.index <= 8 %}-
{{ post.date | date(format="%b %-d, %Y") }}
{{ post.title }}
{% if post.description %}
{% endif %}{% endfor %}
{{ post.description }}
{% endif %}All posts →
Choosing a CMS?
Honest, side-by-side comparisons of LightCMS against the platforms people evaluate.
See all comparisons
{% extends "base.html" %}
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
{% block description %}{{ page.description | default(value=config.description) }}{% endblock description %}
{% block og_type %}{% if page.date %}article{% else %}website{% endif %}{% endblock og_type %}
{% block og_title %}{{ page.title }}{% endblock og_title %}
{% block og_description %}{{ page.description | default(value=config.description) }}{% endblock og_description %}
{% block og_image %}{{ get_url(path="og-image.webp") }}{% endblock og_image %}
{% block tw_title %}{{ page.title }}{% endblock tw_title %}
{% block tw_description %}{{ page.description | default(value=config.description) }}{% endblock tw_description %}
{% block tw_image %}{{ get_url(path="og-image.webp") }}{% endblock tw_image %}
{% block head_extra %}{% if page.date %}
{% if page.taxonomies.tags %}
{% for tag in page.taxonomies.tags %}
{% endfor %}{% endif %}
{% endif %}{% endblock head_extra %}
{% block og_image_alt %}{{ page.title }}{% endblock og_image_alt %}
{% block jsonld %}
{
"@context": "https://schema.org",
"@type": "{% if page.date %}BlogPosting{% else %}WebPage{% endif %}",
"headline": {{ page.title | json_encode() | safe }},
"description": {{ page.description | default(value=config.description) | json_encode() | safe }},
"url": {{ page.permalink | json_encode() | safe }},
"image": "{{ config.base_url }}/og-image.webp",
"mainEntityOfPage": {{ page.permalink | json_encode() | safe }},
"inLanguage": "en",
"isPartOf": { "@type": "WebSite", "name": {{ config.title | json_encode() | safe }}, "url": {{ config.base_url |
json_encode() | safe }} },
"author": { "@type": "Organization", "name": "LightCMS", "url": "https://www.lightcms.me/" },
"publisher": {
"@type": "Organization",
"name": "LightCMS",
"url": "https://www.lightcms.me/",
"sameAs": ["https://www.lightcms.me/", "https://github.com/light-cms", {{ config.extra.source_repo | json_encode() |
safe }}, "https://x.com/{{ config.extra.twitter_username }}", "https://bsky.app/profile/{{ config.extra.bluesky_username
}}", "https://www.lightcms.me/docs"]
}{% if page.date %},
"datePublished": "{{ page.date }}",
"dateModified": "{% if page.updated %}{{ page.updated }}{% else %}{{ page.date }}{% endif %}"{% endif %},
"articleSection": {{ page.taxonomies.tags | default(value=[]) | first | default(value="") | json_encode() | safe }},
"keywords": {{ page.taxonomies.tags | default(value=[]) | join(sep=", ") | json_encode() | safe }},
"wordCount": {{ page.word_count | default(value=0) }}
}
{% endblock jsonld %}
{% block jsonld_extra %}
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Home", "item": {{ get_url(path="@/_index.md") | json_encode() | safe }} }{% for ancestor in page.ancestors %}{% if not loop.first %}{% set sec = get_section(path=ancestor) %}, { "@type": "ListItem", "position": {{ loop.index }}, "name": {{ sec.title | json_encode() | safe }}, "item": {{ sec.permalink | json_encode() | safe }} }{% endif %}{% endfor %}, { "@type": "ListItem", "position": {{ page.ancestors | length + 1 }}, "name": {{ page.title | json_encode() | safe }} } ] } </script>{% endblock jsonld_extra %}
{% block content %}
{{ page.title }}
{% if page.date %}{{ page.date | date(format="%B %-d, %Y") }}{% if page.updated and page.updated != page.date %} · Updated {{ page.updated | date(format="%B %-d, %Y") }}{% endif %}
{% endif %} {% if page.description %}{{ page.description }}
{% endif %} {{ page.content | safe }} {% if page.taxonomies.tags %}{% for tag in page.taxonomies.tags %}#{{ tag }}{% endfor %}
{% endif %}{% if page.extra.comments or (page.date and page.extra.comments != false) %}
{% set blog = get_section(path="blog/_index.md") %}
{% set main_tag = page.taxonomies.tags | default(value=[]) | first | default(value="") %}
{% if blog.pages and main_tag != "" %}
Keep reading
{% for post in blog.pages %} {% if loop.index0 < 8 and post.permalink !=page.permalink and post.taxonomies.tags and main_tag in post.taxonomies.tags %}-
{{ post.date | date(format="%b %-d, %Y") }}
{{ post.title }}
{% endif %}
{% endfor %}
{% extends "base.html" %}
{% block title %}{{ section.title }} | {{ config.title }}{% endblock title %}
{% block description %}{{ section.description | default(value=config.description) }}{% endblock description %}
{% block og_title %}{{ section.title }} | {{ config.title }}{% endblock og_title %}
{% block og_description %}{{ section.description | default(value=config.description) }}{% endblock og_description %}
{% block jsonld_extra %}
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "CollectionPage", "name": {{ section.title | json_encode() | safe }}, "description": {{ section.description | default(value=config.description) | json_encode() | safe }}, "url": {{ section.permalink | json_encode() | safe }}, "inLanguage": "en", "isPartOf": { "@type": "WebSite", "name": {{ config.title | json_encode() | safe }}, "url": {{ config.base_url | json_encode() | safe }} } } </script>{% endblock jsonld_extra %}
{% block content %}
{{ section.title }}
{% if section.description %}{{ section.description }}
{% endif %}{% for post in all_pages %}-
{{ post.date | date(format="%b %-d, %Y") }}
{{ post.title }}
{% if post.description %}
{% endfor %}
{% endif %} {% endblock content %}.templates-legacy/tags/list.html{{ post.description }}
{% endif %}{% extends "base.html" %}
{% block title %}Tags | {{ config.title }}{% endblock title %}
{% block description %}Blogs by light-cms team, LightCMS a cms for managing contents for static site generators.{%
endblock description %}
{% block og_title %}Tags | {{ config.title }}{% endblock og_title %}
{% block og_description %}Every LightCMS post on static sites, Git based content, Markdown publishing, and hosting
comparisons, grouped by topic.{% endblock og_description %}
{% block jsonld_extra %}
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "CollectionPage", "name": {{ config.title | json_encode() | safe }}, "description": "Every LightCMS post on static sites, Git based content, Markdown publishing, and hosting comparisons, grouped by topic.", "url": {{ config.base_url | json_encode() | safe }}, "inLanguage": "en", "isPartOf": { "@type": "WebSite", "name": {{ config.title | json_encode() | safe }}, "url": {{ config.base_url | json_encode() | safe }} } } </script>{% endblock jsonld_extra %}
{% block content %}
Tags
Everything on the blog.
{% for term in terms %}-
{{ term.page_count }} post{% if term.page_count != 1 %}s{% endif %}
#{{ term.name }}
{% endfor %}
{% endblock content %}.templates-legacy/tags/single.html{% extends "base.html" %}
{% block title %}#{{ term.name }} | {{ config.title }}{% endblock title %}
{% block description %}Articles on the LightCMS blog tagged #{{ term.name }}: static sites, Git based CMS, and Markdown
publishing.{% endblock description %}
{% block og_title %}#{{ term.name }} | {{ config.title }}{% endblock og_title %}
{% block og_description %}Articles on the LightCMS blog tagged #{{ term.name }}: static sites, Git based CMS, and
Markdown publishing.{% endblock og_description %}
{% block content %}
#{{ term.name }}
{{ term.pages | length }} post{% if term.pages | length != 1 %}s{% endif %}
{% for post in term.pages %}-
{% if post.date %}{{ post.date | date(format="%b %-d, %Y")
}}{% else %}Page{% endif %}
{{ post.title }}
{% if post.description %}
{% endfor %}
{% endblock content %}content/search.md{{ post.description }}
{% endif %}+++
title = "Search"
description = "Search the LightCMS blog and documentation"
template = "search.html"
in_search_index = false
+++templates/search.html
{% extends "base.html" %}
{% block content %}
{{ page.title }}
{%- if page.description -%}{{ page.description }}
{%- endif -%}{% endblock content %}templates/article.html
{% extends "base.html" %}
{% block content %}
{%- set date_format =
-%}
{%- if page?.extra?.toc_ordered or section?.extra?.toc_ordered or config.extra?.toc_ordered -%}
{%- if page?.extra?.banner -%}{%- set list_element = "ol" -%}
{%- else -%}
{%- set list_element = "ul" -%}
{%- endif -%}
{%- if page.extra.comments != false and page.date -%}
{%- if page?.lower or page?.higher -%}
{%- if page.higher -%}
{%- if config.extra?.show_copy_button %}
{{ }}
{%- endif %}
templates/partials/nav.html
{%- if config.extra.nav?.auto_hide %}
{%- endif %} {{ }}
{{- -}}
{%- for link in link.menu -%} {%- if link.url is matching(pat='^https?://') %}-
{{- -}}
{%- else %}
-
{{- -}}
{%- endif %}
{%- endfor -%}
}}">
}}">
{%- for feed in config.feed_filenames %}-
{%- if feed == "atom.xml" -%}
Atom
{%- else -%}
RSS
{%- endif -%}
{%- endfor -%}
newsletter-newsy commentedon Nov 1, 2026
New Post:
content/gallery/_index.mdtemplates/gallery.htmltemplates/partials/footer.htmlcontent/gallery/_index.md
+++
title = "Gallery"
description = "Visual showcase of LightCMS features, editor workspace, AI copilot, and Git-native workflows."
sort_by = "weight"
template = "gallery.html"
+++
templates/gallery.html
{% extends "base.html" %}
{% block content %}
{{ section.title }}
{%- if section.description %}{{ section.description }}
{%- endif %}{% endblock content %}
<script src="https://script.supademo.com/supademo.js"></script> <script src="/js/image-proxy.js" defer></script> {%- if config.extra.footer?.links %}templates/partials/footer.html
{%- for link in config.extra.footer?.links %} {%- if link.url is matching(pat='^https?://') %}-
{{-
-}}
{%- else %}
-
{{-
-}}
{%- endif %}
{%- endfor %}
{%- endif %}784 remaining items
newsletter-newsy commentedon Nov 28, 2026
New Post:
content/misc/documentation-site-management.de.mdcontent/misc/documentation-site-management.de.md
title: Wie man 2026 eine Dokumentationsseite verwalten kann
description: >-
Ein praktischer Leitfaden zur Verwaltung einer Dokumentationsseite mit Markdown, einem statischen Site-Generator, Git und einem browserbasierten Bearbeitungsworkflow.
date: '2026-10-30T11:53:00Z'
draft: falsch
tags:
slug: dokumentations-site-management
Eine gute Dokumentationsseite ist leicht zu lesen, leicht zu aktualisieren und schwer zu verroten. Die Werkzeuge sind weniger wichtig als der Workflow: die Dokumentation nahe am Code halten Schreiben Sie in einem Format, das Ihr Team überprüfen kann, und machen Sie die Veröffentlichung eines normalen Teils des Versandes.
Verwende einen statischen Stack mit Doks
Die meisten Dokumentations-Sites funktionieren genauso gut wie statische Sites. Sie schreiben in Markdown, speichern die Dateien in Git, erstellen mit einem statischen Site-Generator und verteilen sich auf einen CDN oder statischen Host. Dies gibt Ihnen Versionsverlauf, Pull-Review-Überprüfung und schnelle Seiten.
Zu den gängigen Dokumentationsgeneratoren gehören Astro Starlight, Hugo, VitePress, Elevent und Docusaurus Stil. Wählen Sie eine aus, die der vorhandenen Stapel- und Inhaltsstruktur Ihres Teams entspricht. Wenn Ihre Ingenieure bereits Astro, Starlight ist eine natürliche Passform. Wenn Sie Geschwindigkeit und einfache Binärdateien wollen, ist Hugo einen Blick wert.
Dokumentation im gleichen Workflow wie Code behalten
Docs drift, wenn sie weit weg vom Produkt leben. Sie im selben Projektarchiv zu halten, oder zumindest den gleichen Git-basierten Workflow, macht Aktualisierungen einfacher zu überprüfen. Eine Änderung des Codes und die Änderung der Dokumentation kann durch die gleiche Pull-Request-Anforderung gehen.
Das bedeutet nicht, dass Autoren ein Terminal verwenden müssen. Ein Git-basierter CMS oder Browser-Editor kann Nicht-Entwicklern einen bequemen Platz geben, Markdown zu bearbeiten, während er immer noch zum Repository übergeht.
Wartungsarbeiten langweilig
Die besten Docs Systeme sind ein wenig langweilig. Sie haben klare Eigentümer, eine einfache Ordnerstruktur, Vorlagen für gemeinsame Seitentypen und einen Überprüfungsprozess. Sie haben auch die Gewohnheit, veraltete Seiten zu löschen oder zu aktualisieren.
Ein paar Überprüfungshilfe:
Für verwandtes Lesen siehe Hugo vs Astro Starlight, Was ist Front?, und Git Based CMS vs Traditionelles CMS.
newsletter-newsy commentedon Nov 28, 2026
New Post:
content/gallery/content-editor.ru.mdcontent/gallery/content-editor.ru.md
title: редактор контента
description: >-
Планы, обзоры и материалы редактора контента для того, чтобы они были понятными, точными, последовательными и удобными для аудитории
date: '2026-11-28T14:31:29Z'
draft: ложь
tags:
isCJKLanguage: ложь
headless: ложь
newsletter-newsy commentedon Nov 28, 2026
New Post:
content/misc/documentation-site-management.ru.mdcontent/misc/documentation-site-management.ru.md
title: Как управлять документированием в 2026 году
description: >-
Практическое руководство по управлению документооборотом с Markdown, статическим генератором сайта, Git и браузером по редактированию.
date: '2026-10-30T11:53:00Z'
draft: ложь
tags:
slug: управление документацией
Хороший сайт документации легко читать, легко обновлять, и трудно гнить. Инструменты имеют значение меньше, чем рабочий процесс: храните документы рядом с кодом, пишите в формате, который ваша команда может просматривать и публиковать обычную часть доставки.
Использовать статический стек для документов
Большинство сайтов документации работают и статические сайты. Вы записываете в Markdown, сохраняете файлы в Git, стройте со статическим генератором сайтов и устанавливаете на CDN или статический хост. Это дает вам историю версий, обзор Pull Request и быстрые страницы.
К общим источникам документации относятся инструменты Astro Starlight, Hugo, VitePress, Eleventy, и стиль Docusaurus. Выберите тот, который соответствует существующей структуре контента вашей команды. Если ваши инженеры уже используют Astro, Starlight является естественной формой. Если вы хотите скорость и простые двоичные файлы, Hugo стоит смотреть.
Хранить документы в том же рабочем процессе, что и код
Доктор дрейфа, когда они живут далеко от продукта. Сохранение их в том же репозитории или по крайней мере в одном и том же рабочем процессе, облегчает просмотр обновлений. Изменение кода и его изменение может пройти через тот же запрос на слияние.
Это не означает, что писатели должны использовать терминал. CMS на основе Git или браузерного редактора может дать неразработчикам удобное место для редактирования Markdown при сохранении коммита в репозитории.
Сделать ремонт скучным
Лучшие системы документации немного скучные. Они имеют четкое право собственности, простую структуру папок, шаблоны для общих типов страниц и процесс обзора. У них также есть привычка удалять или обновлять устаревшие страницы.
Несколько функций для проверки:
For related reading, see Hugo vs Astro Starlight, What Is Front Matter?, and Git Based CMS vs Traditional CMS.
newsletter-newsy commentedon Nov 28, 2026
New Post:
content/gallery/content-editor.zh-Hans.mdcontent/gallery/content-editor.zh-Hans.md
title: 内容编辑器
description: >-
内容编辑器计划、审查和改进书面材料,以便清晰、准确、一致并适合其观众。
date: '2026-11-28T14:31:29Z'
draft: false
tags:
isCJKLanguage: false
headless: false
newsletter-newsy commentedon Nov 28, 2026
New Post:
content/misc/documentation-site-management.zh-Hans.mdcontent/misc/documentation-site-management.zh-Hans.md
title: 如何在2026年管理文档网站
description: >-
管理一个带有Markdown的文档网站的实用指南,一个静态站点生成器,Git和一个基于浏览器的编辑流程。
date: '2026-10-30T11:53:00Z'
draft: false
tags:
slug: 文件场地管理
一个很好的文档网站易于阅读,易于更新,很难让它旋转。工具的重要性低于工作流:文档靠近代码。 以您的团队可以评论的格式写入,并且发布一个正常的发货部分。
使用 docs 友好静态堆栈。
大多数文件站点都是固定站点。你写入Markdown, 在 Git 中存储文件, 使用静态站点生成器构建, 并部署到 CDN 或静态主机。这会给你版本历史,拉取请求评论和快速页面。
共同文件生成器包括Astro Starlight、Hugo、VitePress、Eleventy和Docusaurus风格工具。选择一个匹配您团队现有的堆栈和内容结构。如果您的工程师已经使用 Astro,Starlight 是一种自然的适合。如果你想要速度和简单的双胞胎,雨果是值得看起来的。
将文档保持在与代码相同的工作流程
码头远离产品时漂移。将它们保留在相同的仓库中,或至少是相同的 Git 工作流程,使更新更容易审查。代码更改及其文档更改可以通过相同的拉取请求。
这并不意味着作者需要使用终端。基于 Git 的 CMS 或浏览器编辑器可以给非开发者一个舒适的地方来编辑Markdown
使维护保养处于潜伏状态
最好的码头系统有点松懈。他们拥有明确的所有权、简单的文件夹结构、通页类型模板和审核过程。他们还有删除或更新旧页的习惯。
一些检查帮助:
For related reading, see Hugo vs Astro Starlight, What Is Front Matter?, and Git Based CMS vs Traditional CMS.
newsletter-newsy commentedon Nov 28, 2026
New Post:
content/gallery/content-editor.pt-BR.mdcontent/gallery/content-editor.pt-BR.md
title: editor de conteúdo
description: >-
Um plano de editor de conteúdo, revisa e melhora o material escrito para que seja claro, preciso, consistente e adequado ao seu público
date: '2026-11-28T14:31:29Z'
draft: Falso
tags:
isCJKLanguage: Falso
headless: Falso
newsletter-newsy commentedon Nov 28, 2026
New Post:
content/misc/documentation-site-management.pt-BR.mdcontent/misc/documentation-site-management.pt-BR.md
title: Como gerenciar um Site de Documentação em 2026
description: >-
Um guia prático para gerenciar um site de documentação com Markdown, um gerador de site estático, Git, e um fluxo de trabalho baseado em edição no navegador.
date: '2026-10-30T11:53:00Z'
draft: Falso
tags:
slug: documentação-gerente-site
Um bom site de documentação é fácil de ler, fácil de atualizar e difícil de deixar rot. As ferramentas importa menos do que o fluxo de trabalho: mantenha os documentos próximos ao código, escreva em formato que sua equipe possa revisar e torne a publicação de uma parte normal dos envios.
Use uma pilha estática amigável para documentos
A maioria dos sites de documentação funcionam bem como sites estáticos. Você grava em Markdown, armazene os arquivos no Git, crie com um gerador de site estático e faça deploy para um CDN ou host estático. Isso dá histórico de versões, revisão de pull request e páginas rápidas.
Os geradores de documentação comuns incluem as ferramentas de estilo Astro Starlight, Hugo, VitePress, Elevação e Docusaurus. Escolha uma que corresponda à pilha e estrutura de conteúdo existentes da sua equipe. Se seus engenheiros já usam Astro, Starlight é um ajuste natural. Se você quer velocidade e binários simples, Hugo vale um visual.
Manter documentos no mesmo fluxo de trabalho que o código
A documentação deriva quando vive longe do produto. Mantendo-os no mesmo repositório, ou pelo menos no mesmo fluxo de trabalho baseado no Git, torna as atualizações mais fáceis de avaliar. Uma alteração de código e suas alterações de documentos podem passar pela mesma requisição.
Isso não significa que os escritores precisam usar um terminal. Um editor CMS ou navegador baseado em Git pode dar aos desenvolvedores um lugar confortável para editar o Markdown enquanto ainda se compromete com o repositório.
Fazer manutenção chata
Os melhores sistemas de documentos são um pouco chatos. Eles têm propriedade clara, uma estrutura de pastas simples, modelos para tipos de páginas comuns e um processo de revisão. Também têm o hábito de excluir ou atualizar páginas obsoletas.
Algumas verificações de ajuda:
Para leitura relacionada, consulte Hugo vs Astro Starlight, O que é importante na frente?e Git Based CMS vs Tradicionais CMS.
newsletter-newsy commentedon Nov 29, 2026
New Post:
content/misc/surgesh-review-as-an-deployment-platform.fr.mdcontent/misc/surgesh-review-as-an-deployment-platform.fr.md
title: analyse de surge.sh en tant que plateforme de déploiement
description: >-
CLI première plateforme de publication pour le web. servir et gérer les sites Web directement depuis votre terminal avec des flux de travail de publication rapide, des domaines personnalisés et des outils conçus pour les développeurs.
date: '2026-11-29T20:22:37Z'
draft: vrai
keywords: [ ]
tags:
isCJKLanguage: Faux
headless: Faux
slug: surgesh-review-as-an-deployment-platform
Nous avons déjà discuté de tous les avantages des générateurs de sites statiques et comment les sites statiques peuvent nous aider à créer une planète plus verte et plus connectée.
introducing Surge.sh The global CDN for your static sites.
Pour être honnête 14 15 CDN partout dans le monde, votre site se sent aussi rapide et lisse pour tous les utilisateurs.
le plan gratuit de chirurgien est fourni sans cordes, Même pour les choses commerciales et ils sont généreux avec la partie d'hébergement leur plan pro est comme un bouton de don déguisé.
Mais le score d'autorité d'un site en utilisant le sous-domaine du chirurgien est généralement dépriorisé avec les sous-domaines
.surge.sh.Si vous aviez déjà choisi votre générateur de site statique après débats et discussions. Tous peuvent être déployés en poussant de n'importe lequel d'entre eux, assurez-vous simplement que votre site contient un fichier
CNAMEAvec le domaine comme pour nous c'estblogs. ightcms.meSi vous créez un site de portefeuille, vous pouvez aimer avoir
example.com—-> votre siteMais le transfert d'un domaine apex comme
Si vous préférez toujours cette approche, vous pouvez utiliser une solution de contournement en redirigeant le domaine apex (example.com) vers www.example.com.
``bash.
── blog
── CNAME
── makko.md
文 ─ styles. ss
── makko.json
── templates
── feed.html
文 ─ post. tml
── Web
── CNAME
── feed. tom
── feed.json
── feed. ss
── index.html
── makko. tml
─ makko.md
─ styles.css
``créer un fichier
CNAMEde préférence avec le répertoire statiqueet changer le fichier de configuration
newsletter-newsy commentedon Nov 29, 2026
New Post:
content/misc/surgesh-review-as-an-deployment-platform.es.mdcontent/misc/surgesh-review-as-an-deployment-platform.es.md
title: revisión surge.sh como una plataforma de implementación
description: >-
CLI primera plataforma de publicación para la web. servir y administrar sitios web directamente desde su terminal con flujos de trabajo de publicación rápida, dominios personalizados y herramientas diseñadas para desarrolladores.
date: '2026-11-29T20:22:37Z'
draft: verdad
keywords: [ ]
tags:
isCJKLanguage: falso
headless: falso
slug: revisión-quirúrgica-un-plataforma de despliegue
Ya hemos discutido sobre todos los beneficios de los generadores estáticos de sitios y cómo puede ayudarnos a crear un planeta más verde y más conectado.
introduciendo Surge.sh El CDN global para sus sitios estáticos.
Para ser honesto los 14 15 CDN de cirugía en todo el mundo hacen que su sitio se sienta igual de rápido y suave para todos los usuarios.
el plan libre del cirujano viene sin cadenas adjuntas, incluso para cosas comerciales y son generosos con la parte de alojamiento su plan pro es como un botón de donación disfrazado.
Pero la puntuación de autoridad de un sitio que utiliza el subdominio de cirge generalmente está despriorizada con subdominios
.surge.sh.Si ya había elegido su generador estático de sitios después de debates y discusión. Todo puede ser desplegado al salir de cualquiera de ellos simplemente asegúrese de que su sitio contiene un archivo
CNAMECon el dominio como para nosotros esblogs. ightcms.meSi crea un sitio de portafolio puede que le guste tener
example.com—-> su sitioPero transfiriendo un dominio apex como
Si todavía prefiere este enfoque, puede utilizar una solución alternativa redirigiendo el dominio apex (ejemplo.com) a www.example.com.
``bash.
★ blog
Ninguno: CNAME
mañano.md
Estilos aplanados. ★
► makko.json
Ningunidades de plantillas
téminos, feed.html
Ningunamente, post. tml
tml
→ web
→ CNAME
→ feed. tom
► feed.json
→ feed. ★
► index.html
→ ✓ makko. tml
tml
tml
tml styles.c(debate)
``crear un archivo
CNAMEpreferiblemente con el directorio estáticoy cambiar el archivo de configuración
newsletter-newsy commentedon Nov 29, 2026
New Post:
content/misc/surgesh-review-as-an-deployment-platform.de.mdcontent/misc/surgesh-review-as-an-deployment-platform.de.md
title: surge.sh überprüft als Bereitstellungsplattform
description: >-
CLI erste Publishing-Plattform für das Web. Services und Verwaltung von Websites direkt von Ihrem Terminal aus mit schnellen Publishing-Workflows, kundenspezifischen Domains und Tools, die für Entwickler entwickelt wurden.
date: '2026-11-29T20:22:37Z'
draft: wahr
keywords: [ ]
tags:
isCJKLanguage: falsch
headless: falsch
slug: surgesh-review-as-an-deployment-Plattform
Wir haben bereits alle Vorteile von statischen Standortgeneratoren diskutiert und wie kann statische Website uns helfen, einen grüneren und mehr verbundenen Planeten zu schaffen.
Einführung von Surge.sh Die globale CDN für Ihre statischen Seiten.
Um ehrliche Chirurgen zu sein sorgt die 14 15 CDN auf der ganzen Welt dafür, dass sich Ihre Website genauso schnell und glatt für alle Benutzer anfühlt.
Der kostenlose Plan des chirurgischen Chirurgen ist ohne Zeichenketten angehängt, auch für kommerzielle Sachen und sie sind großzügig mit dem Hosting-Teil ihr Pro Plan ist wie ein Spenden-Button in Verkleidung.
Aber die Autorität einer Website mit der Unterdomain eines Chirurgen wird im Allgemeinen mit
.surge.shSubdomains abgestuft.Wenn Sie bereits Ihre statische Website Generator nach Debatten und Diskussionen ausgewählt. Alle können bei Überschuss von jedem von ihnen eingesetzt werden, nur stellen Sie sicher, dass Ihre Website eine Datei
CNAMEenthält. Mit der Domäne wie für uns ist esblogs. ightcms.meWenn Sie eine Portfolio-Seite erstellen, haben Sie vielleicht gerne
beispiel.com—-> Ihre WebsiteAber die Übertragung einer Spitzendomain wie
Wenn Sie diesen Ansatz immer noch bevorzugen, können Sie eine Workaround verwenden, indem Sie die apex Domain (beispiel.com) an www.example.com weiterleiten.
``bash.
文 Blog
CNAME
makko.md
Stile. ss
本 makko.json
本 Vorlagen
本 feed.html
Post. tml
本 web
本 CNAME
本 feed. tom
本 feed.json
本 feed. ss
本 index.html
makko. tml
本 makko.md
styles.css
``erstelle eine Datei
CNAMEvorzugsweise mit dem statischen Verzeichnisund ändern Sie die Konfigurationsdatei
newsletter-newsy commentedon Nov 29, 2026
New Post:
content/misc/surgesh-review-as-an-deployment-platform.ru.mdcontent/misc/surgesh-review-as-an-deployment-platform.ru.md
title: рассмотрение surge.sh в качестве платформы для развертывания
description: >-
CLI первая платформа для публикации в Интернете. обслуживать и управлять веб-сайтами прямо из вашего терминала с быстрыми процессами публикации, пользовательскими доменами и инструментами для разработчиков.
date: '2026-11-29T20:22:37Z'
draft: истина
keywords: [ ]
tags:
isCJKLanguage: ложь
headless: ложь
slug: surgesh-review-as-an-deployment ment-platform
Мы уже обсудили все преимущества статических генераторов сайтов и то, как статический сайт поможет нам создать более зеленую планету и более подключенную к нему.
внедрение Surge.sh глобального CDN для ваших статических сайтов.
Для того, чтобы быть честным хирургом, 14 15 CDN по всему миру делает ваш сайт столь же быстрым и гладким для всех пользователей.
бесплатный план хирурга не привязан ни к одной строке, даже для коммерческих вещей, и они щедро с хостингом часть их Pro план, как кнопка пожертвования в маскировке.
Но рейтинг авторитета сайта, использующего поддомены хирурга, как правило, деприоритизируется с субдоменами
.surge.sh.Если вы уже выбрали ваш статический генератор сайта после дебатов и обсуждений. Все они могут быть развернуты на всплеске с любого из них, просто убедитесь, что ваш сайт содержит файл
CNAMEс таким доменом, как для нас, этоблог. ightcms.meЕсли сделать сайт портфолио, вы можете любить иметь
example.com- -> ваш сайтНо передача apex домена как
Если вы по-прежнему предпочитаете этот подход, вы можете использовать обход, перенаправив apex домен (example.com) на www.example.com.
``bash.
├── blog
│ ├── CNAME
│ ├── makko.md
│ └── styles.css
├── makko.json
├── templates
│ ├── feed.html
│ └── post.html
└── web
├── CNAME
├── feed.atom
├── feed.json
├── feed.rss
├── index.html
├── makko.html
├── makko.md
└── styles.css
``создать файл
CNAMEпредпочтительно со статическим каталогоми изменить конфигурационный файл
newsletter-newsy commentedon Nov 29, 2026
New Post:
content/misc/surgesh-review-as-an-deployment-platform.pt-BR.mdcontent/misc/surgesh-review-as-an-deployment-platform.pt-BR.md
title: análise surge.sh como uma plataforma de implantação
description: >-
Primeira plataforma de publicação do CLI na web. servem e gerenciam sites diretamente no seu terminal com fluxos de trabalho rápidos, domínios personalizados e ferramentas projetadas para desenvolvedores.
date: '2026-11-29T20:22:37Z'
draft: verdadeiro
keywords: [ ]
tags:
isCJKLanguage: Falso
headless: Falso
slug: surgesh-review-as-implantação-plataforma
Nós já discutimos todos os benefícios dos geradores de site estáticos e como o site estático pode nos ajudar a criar um planeta mais verde e mais conectado.
introduzindo Surge.sh O CDN global para seus sites estáticos.
Ser um cirurgião honesto de 14 de CDN em todo o mundo faz com que seu site se sinta igualmente rápido e suave para todos os usuários.
o plano gratuito do cirurge não vem com nenhuma frase anexada, Mesmo para coisas comerciais e para elas são generosas com a parte que organizam o seu plano profissional é como um botão de doação disfarçada.
Mas a pontuação de autoridade de um site usando o subdomínio do circo é geralmente despriorizada com os subdomínios
.surge.sh.Se você já escolheu o seu gerador de site estático após debates e discussões. Todos podem ser implantados com um surto a partir de qualquer um deles, basta verificar se o seu site contém um arquivo
CNAMECom o domínio como para nós éblogs. ightcs.meSe fizer um site de portfólio você pode adorar ter
example.com—-> seu siteMas transferir uma forma de domínio apex
Se você ainda preferir essa abordagem, você pode usar uma solução alternativa, redirecionando o domínio apex (exemplo.com) para www.example.com.
``bash.
── blog
├── CNAME
├─── makko.md
── styles. ss
─── makko.json
── modelos
─── feed.html
── post. tml
── web
── CNAME
── feed feed . tom
── feed.json
── feed feeded. ss
── index.html
── makko. tml
── makko.md
── styles.css
``criar um arquivo
CNAMEde preferência com o diretório estáticoe alterar o arquivo de configuração
newsletter-newsy commentedon Nov 29, 2026
Published Post:
content/misc/surgesh-review-as-an-deployment-platform.mdcontent/misc/surgesh-review-as-an-deployment-platform.md
title: surge.sh review as an deployment platform
description: >-
CLI first publishing platform for the web. serve and manage websites directly
from your terminal with fast publishing workflows, custom domains, and tools
designed for developers.
date: '2026-11-29T20:22:37Z'
draft: false
keywords: []
tags:
isCJKLanguage: false
headless: false
slug: surgesh-review-as-an-deployment-platform
We have already discussed all the benefits of static site generators and how can static site help us creating a greener planet and more connected one.
introducing Surge.sh The global CDN for your static sites.
To be honest surge’s 14 15 CDN all over the world makes your site feel equally fast and smooth to all the users.
surge’s free plan comes with no strings attached, even for commercial stuff and they are generous with the hosting part their pro plan is like a donation button in disguise.
But the authority score of a site using surge’s subdomain is generally deprioritized with
.surge.shsubdomains.If you had already chosen your static site generator after debates and discussion. All can be deployed on surge from any of them just make sure your site contains a file
CNAMEWith the domain like for us it’sblogs.lightcms.meIf making a portfolio site you may love to have
example.com—-> your siteBut transferring an apex domain like
If you still prefer this approach, you can use a workaround by redirecting the apex domain (example.com) to www.example.com.
``bash.
├── blog
│ ├── CNAME
│ ├── makko.md
│ └── styles.css
├── makko.json
├── templates
│ ├── feed.html
│ └── post.html
└── web
├── CNAME
├── feed.atom
├── feed.json
├── feed.rss
├── index.html
├── makko.html
├── makko.md
└── styles.css
``create a file
CNAMEpreferably with the static directoryand change the configuration file of the ssg to reflect something like
``json{
"$schema": "https://makko.starlightnet.work/schema.json",
"title": "My Makko blog!",
"description": "My very own blog made with Makko!",
"url": "https://f4bdb05de2d85f25.surge.sh",
"paths": {
"symlinks_enabled": false,
"cleanup_mode": "none",
"source": "blog/",
"templates": "templates/",
"output": "web/"
},
"feeds": {
"html": "index.html",
"atom": "feed.atom",
"rss": "feed.rss",
"json": "feed.json"
},
"custom": {
"hey1": "You can add anything here, then reference it in your templates",
"hey2": "or markdown files like this: {{custom.hey1}}, {{custom.hey2}}",
"note": "Any JSON input through STDIN will be overlaid on top of this."
},
"callbacks": {
"on_change": null,
"on_create": null,
"on_delete": null,
"on_modify": null
},
"hashes": {
"meet-makko0": "rR80H5YlF1w"
}
}
``Make sure to change the url to your designated ssg’s configuration.
that’s it
``bashmakko . && surge publish ./web/
``here
./webcan be dist. If automating the entire process with mise then this will be predictable, reproducible, auditable at each and every step``verilog┌──────────┬────────────────────────────────────────────────────────────────┬─────────────────────┐
│ CERT │ *.surge.sh, surge.sh │ auto-renew │
├──────────┼────────────────────────────────────────────────────────────────┼─────────────────────┤
│ DNS │ using Surge Name Servers │ geo-aware │
└──────────┴────────────────────────────────────────────────────────────────┴─────────────────────┘
┌──────────┬──────────────────┬───────────────────────┬─────────────────────┬─────────────┬───────┐
│ HTTP │ sfo.surge.sh │ US, San Francisco │ 138.197.235.123 │ D.Ocean │ ✔ │
│ HTTP │ lhr.surge.sh │ GB, London │ 46.101.67.123 │ D.Ocean │ ✔ │
│ HTTP │ yyz.surge.sh │ CA, Toronto │ 159.203.50.177 │ D.Ocean │ ✔ │
│ HTTP │ jfk.surge.sh │ US, New York │ 159.203.159.100 │ D.Ocean │ ✔ │
│ HTTP │ ams.surge.sh │ NL, Amsterdam │ 188.166.132.94 │ D.Ocean │ ✔ │
│ HTTP │ fra.surge.sh │ DE, Frankfurt │ 138.68.112.220 │ D.Ocean │ ✔ │
│ HTTP │ sgp.surge.sh │ SG, Singapore │ 139.59.195.30 │ D.Ocean │ ✔ │
│ HTTP │ blr.surge.sh │ IN, Bangalore │ 139.59.50.135 │ D.Ocean │ ✔ │
│ HTTP │ syd.surge.sh │ AU, Sydney │ 45.76.126.95 │ Vultr │ ✔ │
│ HTTP │ nrt.surge.sh │ JP, Tokyo │ 172.104.96.133 │ Linode │ ✔ │
└──────────┴──────────────────┴───────────────────────┴─────────────────────┴─────────────┴───────┘
Live preview ........................................... 1795987212694--f4bdb05de2d85f25.surge.sh
Latest ........................................................ latest--f4bdb05de2d85f25.surge.sh
Production ............................................................ f4bdb05de2d85f25.surge.sh
Success! - Published to f4bdb05de2d85f25.surge.sh
``by the way if wanted this on a custom domain like blog.example.com
put a cname record of
``bash``Don’t worry surge follows a deferred way of deployment .
sample
mise.toml``toml[tools]
"github:kristoff-it/ziggy" = "latest"
"github:kristoff-it/zine" = "latest"
"github:neurocyte/flow" = "latest"
"github:light-cms/md2smd" = "latest"
"github:sass/dart-sass" = "latest"
node = "24"
"npm:surge" = "latest"
superhtml = "latest"
"npm:parcel" = "latest"
bun = "latest"
"npm:pagefind" = "latest"
biome = "latest"
prettier = "latest"
wrangler = { version = "latest", allow_builds = ["esbuild", "sharp", "workerd"] }
[settings]
experimental = true
[tasks.fetch]
run = "bun scripts/fetch.js"
description = "fetch the latest posts"
[tasks.build]
run = ["mise fetch", "zine release -f", "pagefind --site public", "bun install", "bun run build"]
description = "build the site"
[tasks.dev]
run = "zine"
description = "start the dev server"
[tasks.deploy]
run = [
"mise run build",
"surge public/ publish",
]
description = "deploy the site"
``ci
``yamlname: cloudflare pages
on:
push:
branches:
- main
workflow_dispatch:
repository_dispatch:
types: [content_update, blog_update]
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: ghcr.io/jdx/mise:debian
steps:
- name: checkout code
uses: actions/checkout@main
- name: cache mise dependencies
uses: actions/cache@main
with:
path: |
/root/.local/share/mise/installs
/root/.local/share/mise/cache
key: mise-${{ runner.os }}
restore-keys: |
mise-${{ runner.os }}
- name: Install dependencies
shell: bash
run: |
mise trust
mise deps
mise install
mise run build
- name: Deploy to surge
shell: bash
run: mise run deploy
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
``generate
SURGE_TOKENviasurge tokencommandand store that here
newsletter-newsy commentedon Nov 30, 2026
New Post:
templates/partials/title.htmltemplates/partials/title.html
{#- Short, branded titles: page title first, brand last, no repeated description. -#}
{%- set brand = config.extra.brand | default(value='LightCMS Journal') -%}
{%- set tagline = config.description -%}
{%- set separator = config.extra.title_separator | default(value='|') -%}
{%- set home_url = get_url(path='/', lang=lang) ~ '/' -%}
{%- if current_url is defined and current_url == home_url -%}
{{- brand ~ ' — ' ~ tagline -}}
{%- elif title is defined and title -%}
{{- title ~ ' ' ~ separator ~ ' ' ~ brand -}}
{%- elif page is defined and page.title -%}
{{- page.title ~ ' ' ~ separator ~ ' ' ~ brand -}}
{%- elif section is defined and section.title -%}
{{- section.title ~ ' ' ~ separator ~ ' ' ~ brand -}}
{%- elif term is defined and term.name -%}
{{- term.name | capitalize ~ ' ' ~ separator ~ ' ' ~ brand -}}
{%- elif taxonomy is defined and taxonomy.name -%}
{{- taxonomy.name | capitalize ~ ' ' ~ separator ~ ' ' ~ brand -}}
{%- else -%}
{{- 'Page not found ' ~ separator ~ ' ' ~ brand -}}
{%- endif -%}
newsletter-newsy commentedon Dec 2, 2026
New Post:
templates/partials/title.htmltemplates/partials/title.html
{#- Short, branded titles: page title first, brand last, no repeated description. -#}
{%- set brand = config.extra.brand | default(value='LightCMS Journal') -%}
{%- set tagline = config.description -%}
{%- set separator = config.extra.title_separator | default(value='|') -%}
{%- set home_url = get_url(path='/', lang=lang) ~ '/' -%}
{%- if current_url is defined and current_url == home_url -%}
{{- brand ~ ' — ' ~ tagline -}}
{%- elif title is defined and title -%}
{{- title ~ ' ' ~ separator ~ ' ' ~ brand -}}
{%- elif page is defined and page.title -%}
{{- page.title ~ ' ' ~ separator ~ ' ' ~ brand -}}
{%- elif section is defined and section.title -%}
{{- section.title ~ ' ' ~ separator ~ ' ' ~ brand -}}
{%- elif term is defined and term.name -%}
{{- term.name | capitalize ~ ' ' ~ separator ~ ' ' ~ brand -}}
{%- elif taxonomy is defined and taxonomy.name -%}
{{- taxonomy.name | capitalize ~ ' ' ~ separator ~ ' ' ~ brand -}}
{%- else -%}
{{- 'Page not found ' ~ separator ~ ' ' ~ brand -}}
{%- endif -%}