Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

announcement #1

Open
Open

Description

@newsletter-newsy
  • 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

  1. locked and limited conversation to collaborators on Oct 26, 2026
  2. unlocked this conversation on Oct 26, 2026
  3. locked and limited conversation to collaborators on Oct 26, 2026
  4. newsletter-newsy commented on Oct 26, 2026

    @newsletter-newsy
    Author
    • fix(templates): name main site in page metadata and repair block names (Pratyay360)

    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-cms template 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.md is the entry point, references/ holds per-generator deep dives, and scripts/check-content.mjs validates the content contract.

    Install

    Copy or symlink this directory into the skills directory used by your agent. For OpenCode:

    ``bash
    ln -s /path/to/lightcms-skills ~/.config/opencode/skills/lightcms-skills
    ``

    The folder name and the name in SKILL.md should match. If your setup discovers skills from another directory, keep the same layout: a folder containing SKILL.md, references/, and scripts/.

    What it covers

    • Creating a new starter with home, about, section index, sample posts, 404, CSS, mise.toml, and GitHub Actions.
    • Customizing a copied template without breaking LightCMS discovery, front matter, or deploy paths.
    • Porting an existing SSG site: finding the top-level collection, fixing epoch filenames, checking YAML dates, and wiring CI.
    • Authoring content: required fields, ISO dates, drafts, tags, images, and the Jekyll nodate plugin.
    • Deploying to GitHub Pages, Cloudflare Pages, Vercel, Netlify, or Surge.
    • Reviewing a finished template with the quality checklist.

    The content checker

    ``bash
    node 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

    ``text
    SKILL.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-cms template 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-cms template 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.

    1. Content must live under a top-level directory LightCMS can discover. LightCMS lists the repository root and treats every non-dot directory as a collection. A project with content/posts/ is manageable as the content collection; a project with src/posts/ is manageable as src. Hidden folders such as .github are ignored. Content buried outside a top-level directory is invisible to the CMS.
    2. Files must be Markdown or MDX with YAML front matter. LightCMS writes --- 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.
    3. The filename is the slug. LightCMS exposes a Slug field on every entry and defaults it to a Unix timestamp. A human slug (hello-world) gives a clean URL everywhere. An epoch filename (1792167272) gives an ugly URL and, in Jekyll, fails to load at all without the nodate plugin.
    4. Use the common front matter first. title, description, date, draft, and tags work across the templates and are the safest fields to depend on. Add keywords, weight, or generator-specific fields only when that generator actually uses them.
    5. Dates are ISO 8601 UTC. LightCMS normalizes dates to 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.
    6. Build and deploy are one command each. Every template uses mise.toml with a build task 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.
    7. The first clone must build without private state. No secrets, no local 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 .smd files usually settles it.

    Intent Route
    Create a new template from scratch Read references/content-contract.md, then the matching SSG reference
    Customize a copied template (rename, theme, add pages) Read the matching SSG reference and references/quality-checklist.md
    Port an existing site to LightCMS Read references/content-contract.md and the matching SSG reference; focus on collection discovery and filename compatibility
    Author or fix content in an existing LightCMS repo Read references/content-contract.md; only load an SSG reference when a build or URL issue appears
    Deploy or fix CI Read references/deployment.md and the matching SSG reference
    Add a new SSG variant Follow the structure of an existing reference, then add a row to the matrix below and a link in this file

    Choose the generator

    Use the user's stated generator. If they have no preference, recommend based on the job rather than novelty.

    Generator Best for Native content root Output URL source Main LightCMS gotcha
    Hugo Large blogs, fast builds, built-in theme content/ public/ Filename or url baseURL must include the project path on GitHub Pages
    Astro + Starlight Docs, guides, small blogs src/content/docs/ dist/ File path or slug Epoch filenames become epoch URLs unless a slug is set
    Zola Single binary, no runtime content/ public/ Filename, slug, or path YAML works, but date quoting and sort_by = "date" need testing
    Eleventy Minimal JS, full templating control src/ _site/ File path or permalink pathPrefix must match the deploy path
    Jekyll GitHub Pages heritage, Ruby _posts/ _site/ Filename/date or permalink Default post reader rejects non-date filenames; include nodate.rb
    Zine SuperMD/zine-ssg experiments content/ public/ File path .smd is not Markdown; use the md2smd bridge or pick another generator
    mdBook Documentation books src/ book/ SUMMARY.md New chapters need a SUMMARY.md entry; front matter is not native

    Build a template

    1. Inspect before writing. List the repo, read its README, config, 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.
    2. Decide the collection mapping. Name the top-level directory LightCMS will show and the folder inside it where writers will work. Examples: Hugo content → content/posts; Astro src → src/content/docs/blog; Jekyll _posts → files directly in _posts. Write this mapping in the README.
    3. Scaffold the minimum complete site. Home page, about page, one section index, two sample posts, a 404 page, plain CSS, a favicon, and an RSS/feed where the generator supports it. No theme dependency unless the user asked for one.
    4. Add the shared front matter. Use title, description, date, draft, and tags in every sample post. Use ISO dates. Add keywords when 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 under taxonomies), add a build-time mirror rather than making writers fill two fields; see the Zola reference.
    5. Make slugs safe. Document the Slug field in the README. For Jekyll, add _plugins/nodate.rb so arbitrary LightCMS filenames load. For Astro, either instruct writers to set a human slug or add a generateId() that derives an ID from data.title. For Eleventy, add a computed permalink if the project should not expose filenames.
    6. Wire mise.toml. Provide at least start/dev, build, and, where useful, install, index, and deploy. Keep the task names consistent with the existing templates so contributors can move between repos.
    7. Wire CI. Use a pinned ghcr.io/jdx/mise container, mise trust, mise deps, and the same mise run build a contributor uses. Upload the generator's real output directory. Grant only the permissions the deploy target needs.
    8. Write the README. State the stack, the content path, the front matter fields, the build command, the deploy target, and the one thing a writer must not change. The README is part of the template's usability.
    9. Verify from a clean state. Remove generated output and dependency folders, run the build, and inspect the rendered HTML for the home page, a post, the feed, and a 404. Check that the base path is correct for the intended host.

    Validate before handing off

    Run the generator's build, then check:

    • The home page links to the section and the sample posts.
    • A post URL uses the human slug, not a timestamp.
    • draft: true hides a post; draft: false shows it.
    • Dates render correctly and do not shift by a day.
    • The feed and 404 exist if the template claims them.
    • Assets load when the site is served under its project path, not only at /.
    • mise run build works from a fresh clone.
    • The CI artifact path matches the build output.
    • No node_modules, _site, public, dist, book, or .sass-cache is committed.
    • The README's content path matches the actual directory.

    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:

    ``bash
    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
    ``

    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

    • Putting content only under a nested framework path with no explanation. It is still reachable through the top-level collection, but the README must say so.
    • Relying on an epoch filename. It is the default, not a requirement. Tell writers to replace it with a slug.
    • Adding a slug or permalink front 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.
    • Using a baseURL or base that only works at the domain root. GitHub Pages project sites live under /<repo>/; Cloudflare Pages and Vercel usually live at /.
    • Committing generated output. It hides broken builds and creates noisy diffs.
    • Adding a framework or theme for a one-page starter. The existing templates are intentionally plain and dependency-light.
    • Copying a deployment token into the repo. Use repository secrets and document the secret name.

    References

    File Read it when
    references/content-contract.md You need the exact LightCMS discovery, front matter, slug, or content-authoring rules
    references/hugo.md Building or customizing the Hugo template (including the richer blogtemplate variant)
    references/astro.md Building or customizing the Astro/Starlight template
    references/zola.md Building or customizing the Zola template
    references/eleventy.md Building or customizing the Eleventy template
    references/jekyll.md Building or customizing the Jekyll template, especially filename/date handling
    references/zine.md Working with the Zine two-repo setup or converting Markdown to SuperMD
    references/mdbook.md Building or customizing the mdBook documentation template
    references/deployment.md Wiring GitHub Pages, Cloudflare Pages, Vercel, Netlify, or Surge
    references/quality-checklist.md Reviewing a finished template or a port

    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_blog template 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 src collection. Writers work in content/docs/blog. This is intentional: moving content to a root posts/ 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 site and base:

    • GitHub Pages project site: site: "https://<user>.github.io", base: "/<repo>".
    • User site or custom domain: site is the full origin, base is "/" (or omitted).
    • Cloudflare Pages / Vercel / Netlify: usually base: "/".

    A wrong base is the most common Astro deployment failure. Links generated by Starlight include the base automatically; hand-written absolute links such as href="/intro/" do not. Use import.meta.env.BASE_URL or Starlight's link helpers for hand-written links.

    Content and front matter

    src/content.config.ts uses the Starlight loader and schema:

    ``ts
    import { 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:

    ``markdown

    title: First Post
    description: What this starter includes.
    date: '2026-01-10T00:00:00Z'
    draft: false
    tags:

    • intro

    Body text.
    ``

    Starlight's schema requires title; description is used for SEO. draft is a native Starlight field: true keeps the page out of production builds and autogenerated sidebars. date, tags, and keywords are not part of the default schema; if a custom page needs them, extend the schema so they are not stripped:

    ``ts
    import { 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:

    • use the starlight-blog plugin, which adds post listings, dates, authors, tags, and RSS; or
    • create a custom Astro page that queries the collection and renders a list.

    The 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:

    ``text
    src/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:

    1. Preferred: tell writers to replace the Slug field with a human slug. The filename is the URL.
    2. Add a custom ID function to the loader if the project must tolerate timestamps:

    ``ts
    docsLoader({
    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.md into /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 slug front matter field to override the ID. LightCMS does not expose slug as a normal field, so do not rely on writers filling it in.

    Drafts

    Starlight honors draft: true natively: the page is available in astro dev but excluded from astro 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

    ``toml

    mise.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 build writes dist/.

    ``yaml
    name: 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: true builds the search index during astro 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.svg or import.meta.env.BASE_URL.
    • src/styles/global.css imports Tailwind in the org template.
    • src/styles/custom.css holds the Starlight CSS variables. Keep the light/dark pairs together.
    • src/components/Footer.astro is wired through components.Footer. If you remove the file, remove the config entry.
    • The org template uses starlight-theme-exquisitus and 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.md and an empty blog_0/.gitkeep. Remove them. Rename epoch-named sample files to human slugs. Check that astro.config.mjs does not still point at light-cms/astro_blog or the astro_blog base path.

    Verify

    ``bash
    rm -rf dist node_modules
    mise trust
    mise run build
    ``

    Then check:

    • dist/index.html exists and renders the splash page.
    • dist/blog/first-post/index.html exists.
    • Links include the configured base path.
    • Pagefind assets exist if pagefind: true.
    • The 404 page exists (Starlight provides one).
    • The sample post's date does 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:

    ``text
    my-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-level posts/ directory. Other names are discovered from the repository, so a template does not have to create a root posts/ 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:

    Generator Top-level collection Writer-facing folder
    Hugo content content/posts
    Astro + Starlight src src/content/docs/blog
    Zola content content/blog
    Eleventy src src/posts
    Jekyll _posts directly in _posts
    Zine content content/blog
    mdBook src src (chapters listed in SUMMARY.md)

    Do not move a framework's content root just to make the collection name prettier. A content collection with a posts folder 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:

    ``text
    1792167272.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:

    ``text
    hello-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

    Generator Default URL from hello-world.md Override available
    Hugo /posts/hello-world/ url front matter, or slug
    Astro/Starlight /blog/hello-world/ slug front matter or docsLoader({ generateId })
    Zola /blog/hello-world/ slug or path front matter
    Eleventy /posts/hello-world/ permalink front matter or computed data
    Jekyll /hello-world/ permalink front matter or config defaults
    mdBook hello-world.html Only via SUMMARY.md and output config

    For 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 named hello-world.md or 1792167272.md is skipped. Include this plugin, copied from the jekyll_blog template:

    ``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 .md filename in _posts/. Keep the post layout in _config.yml defaults so writers do not have to add layout: post to every file:

    ``yaml
    defaults:

    • scope:
      path: ""
      type: posts
      values:
      layout: post
      ``

    Front matter

    LightCMS reads and writes YAML front matter. A normal entry looks like this:

    ``markdown

    title: A Human-Readable Title
    description: One sentence used for SEO and cards.
    date: '2026-10-14T10:00:00Z'
    draft: false
    tags:

    • lightcms
    • static-sites
      keywords:
    • git-based cms

    The body starts here.
    ``

    Fields that work everywhere

    Field Type Notes
    title string Required by every template; also the editor's primary label
    description string Meta description and list-page summary
    date datetime LightCMS writes ISO 8601 UTC; quote it in YAML
    draft boolean true hides the entry in generators that honor drafts
    tags string list Used for taxonomies when the generator has them; Zola needs a nested mirror before tag pages work
    keywords string list Safe extra metadata; not all themes render it

    Fields to add only when the generator uses them

    Field Used by Caution
    weight Hugo, Zola Changes ordering; do not add by default
    slug Zola, Astro/Starlight LightCMS preserves it as an additional field, but routing should not depend on that
    url Hugo A configured LightCMS field, so it survives edits
    permalink Jekyll, Eleventy Not a built-in LightCMS field; verify it survives an edit
    layout Jekyll, Eleventy Better set through config defaults or directory data
    isCJKLanguage, headless Hugo Hugo-specific; omit from others
    publishDate, expiryDate Hugo Scheduling only works if the template honors it

    Date rules

    LightCMS normalizes dates to UTC and removes milliseconds:

    ``text
    2026-10-14T10:00:00Z
    ``

    Write dates in that shape. Avoid:

    • unquoted YAML dates (date: 2026-10-14) when the generator expects a datetime;
    • timezone-less local times;
    • YYYY/MM/DD;
    • dates embedded in filenames as the only date source.

    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.md is a section index in Hugo and Zola.
    • index.md may be a bundle or a section page.
    • SUMMARY.md is mdBook navigation.
    • README.md at the root is project documentation.
    • Files starting with _ are ignored by Starlight's docsLoader.
    • Files starting with . 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
    Alt text
    ``

    LightCMS can insert image URLs and can upload images depending on the deployment. Keep the path style consistent with the SSG:

    • Hugo: static/images/... is served at /images/....
    • Zola: static/images/... is served at /images/....
    • Eleventy: src/assets/... is copied to /assets/... by the passthrough rule.
    • Astro/Starlight: public/... is served at the base path; src/assets/... is processed.
    • Jekyll: assets/... is served at /assets/....
    • mdBook: images can live beside the chapter or under 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: true is the portable draft flag. The generator must actually honor it:

    • Hugo: draft is native; drafts are excluded unless --buildDrafts.
    • Zola: draft is native; excluded unless --drafts.
    • Eleventy: filter on draft in the collection (the template does).
    • Jekyll: draft: true in _posts is not the same as _drafts/; use published: false or a collection filter if needed.
    • Astro/Starlight: draft is native; excluded from production builds and autogenerated sidebars, visible in dev. Filter a custom blog index if it should hide drafts locally.
    • mdBook: no native draft flag; do not promise one.

    If the user asks for scheduled publishing, verify the generator's real mechanism. Do not imply that publishDate works in a generator that ignores it.

    The publishing loop

    A LightCMS edit should produce this sequence:

    1. The writer edits an entry and saves.
    2. LightCMS commits a .md file with YAML front matter to the selected branch.
    3. The repository's CI workflow runs on that push.
    4. mise run build produces the site.
    5. The deploy step publishes the output.

    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:

    • The file lives under a top-level collection directory.
    • The filename is a lowercase, hyphenated slug, not a timestamp.
    • title is present and human-readable.
    • description is one sentence and useful in search results.
    • date is quoted ISO 8601 UTC.
    • draft is a boolean, not a string.
    • tags is a YAML list, not a comma-separated string.
    • The body uses Markdown the target generator understands.
    • The build passes and the page appears at the expected URL.
      .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

    Generator Command Publish
    Hugo mise run build (hugo) public/
    Astro mise run build (astro build) dist/
    Zola mise run build (zola build) public/
    Eleventy mise run build (eleventy) _site/
    Jekyll bundle exec jekyll build _site/
    Zine mise run build (zine release -f) public/
    mdBook 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:

    Host Typical public URL Base setting
    GitHub Pages project site https://<user>.github.io/<repo>/ Hugo baseURL includes /<repo>/; Astro base: "/<repo>"; Eleventy pathPrefix: "/<repo>/"; Jekyll baseurl: "/<repo>"; Zola base_url includes /<repo>
    GitHub Pages user/org site https://<user>.github.io/ Root path
    Cloudflare Pages https://<project>.pages.dev/ Root path
    Vercel https://<project>.vercel.app/ Root path
    Netlify https://<project>.netlify.app/ Root path
    Custom domain The domain root Root path

    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:

    ``yaml
    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: ./public
    - id: deployment
    uses: actions/deploy-pages@main
    ``

    Requirements:

    1. The repository's Settings → Pages → Build and deployment → Source must be GitHub Actions, not “Deploy from a branch.”
    2. The workflow needs pages: write and id-token: write.
    3. The artifact path must match the generator output.
    4. The workflow must run on pushes to the default branch, or on the branch configured for Pages.
    5. If the repo is a project site, the site config must include the repo name in the base path.

    Pinning actions to a tag or commit SHA is safer than @main for a template others will copy. The org templates use @main for freshness; a production template should pin.

    repository_dispatch for split repos

    When content lives in a separate repository, the content repo can trigger the site build:

    ``yaml
    on:
    repository_dispatch:
    types: [content_update, blog_update]
    ``

    The content repo dispatches:

    ``bash
    gh 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 (DEPLOY in the Zine template) and never commit it.

    Cloudflare Pages

    Connect the repository in the Cloudflare dashboard:

    • Framework preset: the generator, or “None” for Hugo/Zola/mdBook.
    • Build command: the same mise run build, or the native command if the environment already has the tool.
    • Build output directory: the table above.
    • Environment variables: set MISE_EXPERIMENTAL=true if 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:

    • Build command: mise run build, or the native command.
    • Output directory: the table above.
    • Install command: mise deps / mise install if the project depends on mise; otherwise the package manager's install.

    Vercel's build image may not have Hugo, Zola, or mdBook preinstalled. Use mise or a custom install step, and test the first deploy rather than assuming the framework preset installs the binary.

    Netlify

    Set:

    • Build command: mise run build.
    • Publish directory: the table above.
    • Environment: the generator's version if Netlify's default is older.

    For Hugo, Netlify often has an older Hugo than the template expects. Pin the version with a HUGO_VERSION environment variable or use mise.

    Surge

    The blogtemplate uses Surge:

    ``toml
    [tasks]
    build = "hugo"
    index = "npx pagefind --site public"
    deploy = "surge publish ./public blogtemplate.surge.sh"
    ``

    • SURGE_TOKEN must be a repository secret.
    • Change the domain in the task; do not deploy to the org's example domain.
    • Surge is fine for a demo, but a template should not require a paid account or a personal domain.

    CI hygiene

    • Run the build on pull requests as well as pushes, but only deploy on the default branch.
    • Cache the tool installs (~/.local/share/mise, ~/.cache/mise), not the site output.
    • Run mise trust before mise run; a copied template has no trust entry.
    • Use mise deps to install lockfile dependencies; use mise install for the tools.
    • Keep concurrency so two pushes do not race the same Pages deployment.
    • Do not upload node_modules, caches, or secrets in the artifact.
    • If the build needs a token (Surge, a private content repo), pass it as an environment variable from secrets, never as a command-line literal.

    Verify the deployed result

    After the first deploy:

    • Open the home page and a post from a private window.
    • Check the browser console for 404s on CSS, fonts, and images.
    • Check that canonical URLs and feeds use the deployed origin, not localhost or the org's domain.
    • Open a draft URL; it should 404 if drafts are excluded.
    • Push a LightCMS-style entry and confirm the workflow runs and the page appears.
    • Confirm the 404 page works on the host (some hosts need a 404.html at 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_blog template 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 src collection; writers work in the posts folder.

    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 pathPrefix to the real deploy path:

    • GitHub Pages project site: "/<repo>/".
    • User site or custom domain: "/".

    The templates use the url filter for links, which applies pathPrefix. Hand-written absolute paths do not.

    Content and front matter

    ``markdown

    title: First Post
    description: What this starter includes.
    date: '2026-01-10T00:00:00Z'
    draft: false
    tags:

    • intro

    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 adding layout to the front matter. Keep the data file when changing the post layout.

    tags is an Eleventy concept as well as a content field. A list such as tags: [intro, static-sites] creates Eleventy collections for those names. The posts collection here is built from the directory glob, not from tags: posts, so writers do not need a special tag.

    URLs and slugs

    Eleventy derives the URL from the file path:

    ``text
    src/posts/hello-world.md → /posts/hello-world/
    ``

    A timestamp filename becomes /posts/1792167272/. Two ways to prevent that:

    1. Preferred: tell writers to set a human slug in LightCMS. The filename is the URL.
    2. Add a computed permalink in src/posts/posts.11tydata.js:

    ``js
    export 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 url field is not wired to Eleventy by default. If you want a manual override, read data.url in the computed permalink before falling back to the title.

    Drafts and dates

    • The collection filters draft: true, so drafts do not appear in lists.
    • Eleventy still writes the draft page itself unless it is also excluded from the build. If a draft must not be public, add eleventyExcludeFromCollections or move it outside src/posts.
    • date accepts ISO strings. The collection sorts ascending and the templates reverse the list for newest-first display.
    • A missing date gives the file's creation time, which can produce unstable ordering. Keep a date on every post.

    Build and CI

    ``toml

    mise.toml

    [tools]
    "github:sass/dart-sass" = "latest"
    bun = "latest"

    [tasks]
    install = "bun install"
    start = "bun run dev"
    build = "bun run build"
    ``

    bun run build writes _site/.

    ``yaml
    name: 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.njk owns the head, nav, and footer.
    • src/_includes/post.njk wraps a post and links back to /blog/.
    • src/blog.njk and src/index.njk reverse the collection for newest-first order.
    • Passthrough copies src/css to /css and src/assets to /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

    ``bash
    rm -rf _site node_modules
    mise trust
    mise run install
    mise run build
    ``

    Then check:

    • _site/index.html and _site/blog/index.html exist.
    • _site/posts/first-post/index.html exists.
    • A draft: true post is absent from the lists.
    • Links include the configured pathPrefix.
    • CSS and images load under the project path.
    • The RSS feed exists only if the template adds one; the org template does not.
      .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-cms org

    Variant Use it for Content path Theme
    hugo_blog Minimal starter, no external dependencies content/posts Built-in layouts in layouts/
    blogtemplate Personal blog with richer styling and editor schema content/post Built-in theme, Sass, pagefind, Surge deploy

    Start from hugo_blog unless the user asks for the richer blog. Do not copy blogtemplate wholesale 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 the posts folder. This is expected and does not need a root posts/ folder.

    Configuration

    ``toml

    hugo.toml

    baseURL = 'https://example.github.io/my-blog/'
    languageCode = 'en-us'
    title = 'My Blog'

    [params]
    description = 'A short description of the site.'
    ``

    baseURL is the most common deployment bug:

    • GitHub Pages project site: https://<user>.github.io/<repo>/
    • GitHub Pages user site: https://<user>.github.io/
    • Cloudflare Pages, Vercel, Netlify, custom domain: the site root, with a trailing slash

    If the site is served under a project path, keep the path in baseURL. Templates that hardcode /css/style.css should use Hugo's relURL or relPermalink so the path works in both cases:

    ``html

    ` `` `

    Front matter

    Hugo accepts YAML, so a LightCMS-created file works:

    ``markdown

    title: First Post
    description: What this starter includes.
    date: '2026-01-10T00:00:00Z'
    draft: false
    tags:

    • intro

    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, or weight to 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:

    ``text
    content/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:

    ``yaml
    url: /custom/path/
    ``

    url is one of LightCMS's configured fields, so it survives an edit. Hugo also supports slug, but LightCMS does not expose it by default; prefer the filename.

    Build and preview

    ``toml

    mise.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 start serves with live reload.
    • mise run build writes public/.
    • mise run index builds 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 latest for convenience; a production template should pin Hugo and test upgrades.

    CI for GitHub Pages

    ``yaml
    name: 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_dispatch trigger is for split content/site repositories: a content repo can dispatch content_update to the site repo. Remove it if the site is a single repository.

    The blogtemplate variant

    Use it only when the user wants a fuller personal blog. Its additional pieces are:

    • frontmatter.json and .frontmatter/ for the Front Matter VS Code/Cursor extension;
    • archetypes/posts.md with toc, images, tags;
    • content/post/ (singular) and content/test/ sample folders;
    • assets/css/ with Sass;
    • layouts/partials/ and layouts/shortcodes/ for callouts and buttons;
    • mise.toml tasks for start, build, index, and a Surge deploy;
    • utterances comments and goatcounter analytics, both requiring configuration.

    Before reusing it:

    1. Replace the personal title, description, author, social links, and domain.
    2. Replace baseURL with the real domain. The template uses baseUrl; normalize it to Hugo's documented baseURL.
    3. Remove the Surge deploy task or set SURGE_TOKEN as a repository secret. Do not commit the token.
    4. Remove the comments/analytics snippets if the user does not want them; they are third-party requests and need a privacy decision.
    5. Keep frontmatter.json only if the user actually edits in VS Code. LightCMS does not read it.

    Verify

    ``bash
    rm -rf public resources
    mise trust
    mise run build
    ``

    Then check:

    • public/index.html links to /posts/.
    • public/posts/first-post/index.html exists.
    • A post with draft: true is absent from public/.
    • CSS loads when serving the site under the project path, not only at /.
    • public/index.xml exists: 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.
    • The CI artifact path is ./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_blog template 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 _posts collection. 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.md and _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:

    ``ruby
    class 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 a jekyll/jekyll container 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:

    • jekyll-feed

    defaults:

    • scope:
      path: ""
      type: posts
      values:
      layout: post
      ``

    • baseurl must start with / and match the project path on GitHub Pages.

    • url is the origin only.

    • layout: post is applied by default so LightCMS entries do not need a layout field.

    • jekyll-feed generates /feed.xml and the feed_meta tag in the default layout adds the link.

    Add permalink: /:title/ to the post defaults if the site should not expose dates in URLs:

    ``yaml
    defaults:

    • scope:
      path: ""
      type: posts
      values:
      layout: post
      permalink: /:title/
      ``

    Test the result. Jekyll's :title placeholder is derived from the filename, so a human slug gives a clean URL.

    Front matter

    ``markdown

    title: First Post
    description: What this starter includes.
    date: '2026-01-10T00:00:00Z'
    draft: false
    tags:

    • intro

    Body text.
    ``

    Jekyll uses date for ordering. The quoted ISO string is valid.

    Jekyll's draft key is not the same as its _drafts/ folder. A draft: true post in _posts/ is still built unless the theme or a plugin filters it. If the template promises drafts, use one of these instead:

    • put drafts in _drafts/ and build with --drafts only for previews;
    • use published: false (Jekyll's native flag);
    • filter site.posts in Liquid.

    Do not claim draft: true hides a post without implementing it.

    Build and preview

    ``bash
    bundle install
    bundle exec jekyll serve # http://localhost:4000
    bundle exec jekyll build # _site/
    ``

    The template also has a Docker Compose file:

    ``yaml
    services:
    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.yml builds rather than serves; add bundle exec jekyll serve --host 0.0.0.0 if the container should serve the site.

    CI

    ``yaml
    name: 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/jekyll image 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 same bundle exec command.

    Templates and assets

    • _layouts/default.html owns the head, nav, footer, and feed_meta.
    • _layouts/post.html renders the title, date, description, and body.
    • index.md loops site.posts; about.md uses permalink: /about/.
    • assets/css/style.css is plain CSS. Reference it with relative_url so baseurl is respected.
    • Images in assets/ are served under the base URL; use relative_url for hand-written paths.

    Verify

    ``bash
    rm -rf _site .jekyll-cache
    bundle install
    bundle exec jekyll build
    ``

    Then check:

    • _site/index.html lists both sample posts.
    • _site/first-post/index.html exists with the human slug.
    • A LightCMS-style entry named hello-world.md is picked up (the plugin works).
    • _site/feed.xml exists.
    • A published: false post is absent.
    • CSS and links work under 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. The mdbook template 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 src collection. Writers can edit chapter_1.md and SUMMARY.md, but new chapters must be added to SUMMARY.md or they will not appear in the book.

    Configuration

    ``toml

    book.toml

    [book]
    title = "My Book"
    description = "A short description."
    authors = ["Your Name"]
    ``

    Output goes to book/ by default. Change build.build-dir only if CI and the README are updated together.

    Navigation is the contract

    src/SUMMARY.md is not optional. It is the table of contents and the build manifest:

    ``markdown

    Summary

    A new src/getting-started.md is 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:

    1. Create src/my-chapter.md.
    2. Add - [My Chapter](./my-chapter.md) to SUMMARY.md.
    3. Run the build.

    Front matter does not exist

    mdBook renders the chapter Markdown as-is. A LightCMS-created file starts with:

    ``markdown

    title: 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" in book.toml and make the build task run the script before mdbook 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

    ``toml

    mise.toml

    [tools]
    mdbook = "latest"

    [tasks]
    build = "mdbook build"
    ``

    ``yaml
    name: 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

    • No dates, tags, authors, or drafts in front matter.
    • No RSS feed.
    • No automatic listing of unlinked files.
    • No per-page SEO metadata beyond the chapter title.
    • No content collection beyond 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

    ``bash
    rm -rf book .build-src
    mise trust
    node scripts/check-content.mjs src --allow-no-frontmatter
    mise run build
    ``

    Then check:

    • book/index.html exists.
    • Every chapter in SUMMARY.md has a page.
    • No YAML front matter is visible in the rendered chapter.
    • The sidebar matches the summary.
    • The CI artifact path is ./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

    • The repository has a README that states the stack, content path, front matter fields, build command, deploy target, and the files writers should not delete.
    • The sample content builds from a clean checkout with no private state.
    • A LightCMS-shaped entry (YAML, quoted ISO date, human slug, draft: false, tag list) builds and appears at the expected URL.
    • A draft: true entry is hidden, or the README says drafts are not supported.
    • The deploy workflow publishes the correct output directory.
    • The site works under its real base path, not only at /.
    • No generated output, dependency folder, or secret is committed.
    • The license and .gitignore are present.

    Automated checks

    Run these from the repository root.

    ``bash

    1. 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:

    Generator Build output Check
    Hugo public/ test -f public/index.html && test -f public/posts/first-post/index.html
    Astro dist/ test -f dist/index.html && test -f dist/blog/first-post/index.html
    Zola public/ test -f public/index.html && test -f public/blog/first-post/index.html
    Eleventy _site/ test -f _site/index.html && test -f _site/posts/first-post/index.html
    Jekyll _site/ test -f _site/index.html && test -f _site/first-post/index.html
    Zine public/ test -f public/index.html && test -f public/blog/first-post/index.html
    mdBook book/ test -f book/index.html && test -f book/chapter_1.html

    The exact post path depends on the slug and permalink rule. Adjust the filename, not the generator's output directory.

    Content contract review

    • Every post lives under a top-level directory LightCMS discovers (content, src, _posts, or posts).
    • The README names the collection and the writer-facing folder.
    • Filenames are lowercase, hyphenated slugs. No 1792167272.md samples remain.
    • title is present and not a filename placeholder.
    • description is a real sentence, not “TODO.”
    • date is ISO 8601. LightCMS will normalize a date-only value to a UTC datetime.
    • draft is a boolean. A string such as draft: "false" is a bug.
    • tags is a list. A single string works in some generators but is not portable.
    • If the generator needs a different taxonomy shape (Zola uses taxonomies.tags), the build mirrors the LightCMS field or the README says tag pages are not supported.
    • Generator-specific fields are either used by the template or removed.
    • Images have alt text and resolve under the base path.
    • The sample content does not contain personal data, real analytics IDs, or a real deployment token.

    For Jekyll specifically:

    • _plugins/nodate.rb exists and is loaded by the build path (not GitHub Pages' safe-mode builder).
    • layout: post is applied through _config.yml defaults.
    • baseurl starts with / and matches the deploy path.

    For mdBook specifically:

    • Every chapter is listed in SUMMARY.md.
    • A LightCMS-created file does not render its YAML front matter as text, or the README says mdBook is read-only.
    • The CI artifact is book/.

    Deployment review

    • The site config uses the real origin and base path.
    • The CI workflow runs the same mise run build as a contributor.
    • The workflow uploads the generator's real output directory.
    • GitHub Pages is set to GitHub Actions, not “Deploy from a branch.”
    • The workflow has only the permissions it needs (contents: read, pages: write, id-token: write).
    • Deploys run on the default branch; pull requests build but do not deploy.
    • Secrets are repository secrets, and their names are documented in the README.
    • Split content/site repositories dispatch the correct event type and use a token that can reach the site repo.
    • The deployed feed and canonical URLs use the deployed origin, not localhost or the template author's domain.
    • The 404 page works on the host.

    Accessibility and SEO

    • The page has a lang attribute.
    • Every page has a unique <title> and a useful meta description.
    • There is one visible h1 per page.
    • Navigation is keyboard reachable and has a visible focus style.
    • Color contrast is readable in light and dark modes, if both exist.
    • Images have alt text; decorative images have empty alt text.
    • The feed, sitemap, and robots file exist only if they are correct; a broken promise is worse than no file.
    • The template does not load third-party analytics, comments, or fonts without the user asking for them.

    Repository hygiene

    • README.md explains how to preview, build, and deploy.
    • LICENSE matches the intended license (the org templates use Apache-2.0).
    • .gitignore covers the generator output, dependencies, caches, and local env files.
    • mise.toml has start/dev and build tasks; optional tasks are documented.
    • Sample content is clearly marked as sample content and is safe to delete.
    • No personal domain, name, analytics ID, or comments embed remains.
    • No node_modules, _site, public, dist, book, or .sass-cache is tracked.

    Common findings

    Symptom Likely cause Fix
    Site is blank after deploy Wrong artifact directory Match the table above
    CSS 404s only on GitHub Pages Root-relative asset paths Use the generator's base-aware URL helper
    LightCMS post does not appear Wrong collection folder, draft flag, or filename filter Check the top-level collection and the generator's post reader
    Post URL is a timestamp Epoch slug left in place Use a human slug; add a filename-independent rule if needed
    Tag pages are empty Generator expects a different taxonomy shape Mirror tags at build time, or document that tag pages are unsupported
    Jekyll silently skips posts Default date-prefixed reader Include _plugins/nodate.rb and build outside safe mode
    Zola build fails on a date Quoted/unquoted date mismatch in the pinned version Test with LightCMS's exact YAML; normalize before build if needed
    mdBook shows --- and title: YAML front matter rendered as Markdown Add a strip step or do not use mdBook for LightCMS authoring
    Draft still public Generator does not honor draft Implement a filter or move drafts out of the content root
    CI passes but deploy is stale Pages source is a branch, not Actions Switch Pages to GitHub Actions and rerun

    Handoff report

    State:

    1. The stack and why it was chosen.
    2. The LightCMS collection and writer-facing content folder.
    3. The front matter contract (required fields and any optional fields).
    4. The slug rule (filename, computed permalink, or date prefix).
    5. The build command and output directory.
    6. The deploy target and required secret names.
    7. What was verified, including the exact commands and the URL paths checked.
    8. What could not be verified and what the user must do next.

    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 existing zine_blog / zine_content pair.

    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:

    ``text
    zine_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:

    ``yaml
    name: 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
    ``

    DEPLOY must 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.js is the bridge. It:

    1. clones the content repo at a branch into a temp directory;
    2. walks each mapped source directory;
    3. copies each .md to the target path as .md;
    4. runs md2smd on it, producing .smd;
    5. prepends .layout = "<layout>", if the converted front matter lacks one;
    6. deletes the temporary .md.

    The mapping in the org template:

    ``js
    const 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 hardcodes light-cms/zine_content; leaving it in a template is a bug.

    Front matter and schema

    content/.smd.ziggy-schema defines the accepted page fields. The org schema includes:

    • title, description
    • date (RFC3339 string or Unix timestamp)
    • authors, tags
    • layout
    • aliases, alternatives
    • translation_key
    • draft
    • forbid_subsections
    • custom (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, and keywords fields. Either:

    • strip them in fetch.js after conversion;
    • add them to the Ziggy schema and the layouts;
    • configure LightCMS to write only the fields Zine uses.

    Do not assume unknown YAML keys are harmless; test the converted .smd.

    LightCMS usability

    • The content repo has top-level content, so LightCMS shows one collection with posts, notes, and devlogs folders. That part works.
    • LightCMS's editor is a Markdown editor. SuperMD syntax such as []($section.id('about')) and $link.page(...) is not Markdown; writers can type it, but the visual editor may not preserve it.
    • .smd files are not editable as normal Markdown in LightCMS. The content repo must hold .md; the site repo holds .smd.
    • Images: md2smd copies referenced images when they are in the source directory; verify the paths survive conversion.
    • Drafts: the Ziggy schema has 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

    ``toml

    mise.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 -f writes public/. The org repo commits public/; for a template, add it to .gitignore and let CI publish it. Committed output hides broken builds.

    CI

    The site workflow listens for repository_dispatch events from the content repo:

    ``yaml
    on:
    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 ./public to GitHub Pages. The content repo's dispatch is what makes a LightCMS save go live.

    Verify

    ``bash
    rm -rf public
    mise trust
    mise fetch
    mise run build
    ``

    Then check:

    • A converted .smd exists for each .md in the content repo.
    • The .layout line is present.
    • The Ziggy schema accepts the converted fields.
    • public/index.html and a post page exist.
    • Math assets and CSS load.
    • The content repo dispatch actually triggers the site workflow.
    • REPO_URL and REPO_BRANCH point 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 content collection; writers work in the blog folder.

    Configuration

    ``toml

    zola.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_url must 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:

    ``markdown

    title: First Post
    description: What this starter includes.
    date: 2026-01-10T00:00:00Z
    draft: false
    tags:

    • intro

    Body text.
    ``

    The section index:

    ``markdown

    title: Blog
    description: All posts.
    sort_by: date

    ``

    sort_by = "date" means a page without a date is 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:

    ``yaml
    date: '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 in mise.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:

    • keep the date unquoted in the sample and document the requirement;
    • add a small pre-build normalization script that rewrites the date;
    • switch the template to a generator that accepts LightCMS's YAML unchanged.

    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:

    ``yaml
    tags:

    • lightcms
    • zola
      ``

    Zola reads taxonomy values from a nested table:

    ``yaml
    taxonomies:
    tags:
    - lightcms
    - zola
    ``

    A page with only the LightCMS-shaped tags list builds, but it does not populate Zola's tag pages. If the template exposes a tags page, pick one of these approaches:

    • Mirror the field before the build. Add a small script that copies top-level tags into taxonomies.tags and run it before zola 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.
    • Drop tag pages. Keep the top-level tags list as metadata, do not configure a Zola taxonomy, and do not promise tag browsing. This is the simpler option for a minimal starter.
    • Expose taxonomies as 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-level tags list, 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:

    ``text
    content/blog/hello-world.md → /blog/hello-world/
    ``

    Supported overrides:

    ``yaml
    slug: hello-world

    or

    path: blog/hello-world
    ``

    slug is the safer override because it keeps the section path. path replaces 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-DD supplies the page date and is removed from the URL:

    ``text
    content/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-world as 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

    ``toml

    mise.toml

    [tools]
    zola = "latest"
    bun = "latest"

    [tasks]
    start = "zola serve"
    build = "zola build"
    index = "bun x pagefind --site public"
    ``

    • mise run start serves with live reload.
    • mise run build writes public/.
    • mise run index adds 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

    ``yaml
    name: 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 index from CI. A missing index is better than a failing deploy.

    Templates and assets

    • templates/base.html owns the head, nav, and footer. Keep the title/description blocks in the child templates.
    • Use get_url(path="css/style.css") so the base path is respected.
    • templates/section.html lists section.pages; sort_by in the section controls order.
    • templates/404.html is copied to public/404.html by Zola.
    • static/css/style.css is plain CSS. Do not add a Sass build unless compile_sass is set and the file lives under sass/.

    Verify

    ``bash
    rm -rf public
    mise trust
    mise run build
    ``

    Then check:

    • public/index.html links to /blog/.
    • public/blog/first-post/index.html exists.
    • A post with draft: true is absent.
    • A quoted LightCMS-style date is accepted.
    • public/atom.xml exists if feeds are enabled.
    • The base_url does not leak another project's path.
    • Tags render only if a taxonomy and template exist.
  5. unlocked this conversation on Oct 26, 2026
  6. locked and limited conversation to collaborators on Oct 26, 2026
  7. newsletter-newsy commented on Oct 30, 2026

    @newsletter-newsy
    Author
    • Add post Best way to manage a documentation site (light-cms[bot])

    New Post:

    • content/misc/1793361192.md
      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:

    • lightcms
    • opensource
      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.

  8. unlocked this conversation on Oct 30, 2026
  9. locked and limited conversation to collaborators on Oct 30, 2026
  10. newsletter-newsy commented on Oct 31, 2026

    @newsletter-newsy
    Author
    • Add post cloudflare pages vercel netlify which one is better (pratyay360)
    • update (Pratyay360)

    New Post:

    • content/misc/1793013563.md
    • content/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.html
    • content/search.md
    • templates/search.html
    • templates/article.html
    • templates/partials/extra_features.html
    • templates/partials/nav.html
      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.
    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:

    • lightcms
    • opensource
      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 %}

    {{ config.title }} Home Blog Comparisons About Get LightCMS

    <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 %}

      {{ post.description }}

      {% endif %}
    • {% endif %}{% endfor %}

    All posts →

    Choosing a CMS?

    Honest, side-by-side comparisons of LightCMS against the platforms people evaluate.

    See all comparisons

    {% endblock content %} .templates-legacy/page.html

    {% 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) %}

    <script src="https://giscus.app/client.js" data-repo="light-cms/light-cms.github.io" data-repo-id="R_kgDOVK5Kgg" data-category="Announcements" data-category-id="DIC_kwDOVK5Kgs4DJaNc" data-mapping="title" data-strict="1" data-reactions-enabled="1" data-emit-metadata="0" data-input-position="bottom" data-theme="light" data-lang="en" crossorigin="anonymous" async> </script> <script src="/js/giscus-theme.js" defer></script>
    {% endif %}

    {% 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") }}
    • {% endif %} {% endfor %}
    {% endif %} {% endblock content %}.templates-legacy/section.html

    {% 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 %}
    {{ section.content | safe }}
    {% set_global all_pages = section.pages %} {% for extra_section_path in section.extra.include_sections | default(value=[]) %} {% set extra_section = get_section(path=extra_section_path) %} {% set_global all_pages = [...all_pages, ...extra_section.pages] %} {% endfor %} {% set all_pages = all_pages | sort(attribute="date") | reverse %} {% if all_pages %}
      {% for post in all_pages %}
    • {{ post.date | date(format="%b %-d, %Y") }}
      {{ post.title }} {% if post.description %}

      {{ post.description }}

      {% endif %}
    • {% endfor %}
    {% endif %} {% endblock content %}.templates-legacy/tags/list.html

    {% 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 %}
    • {% 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 %}

      {{ post.description }}

      {% endif %}
    • {% endfor %}
    {% endblock content %}content/search.md

    +++
    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 -%}
    <style> #search-container { margin: 2rem 0; } </style>

    {% 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 -%}
    {%- set list_element = "ol" -%}
    {%- else -%}
    {%- set list_element = "ul" -%}
    {%- endif -%}

    {%- if page?.extra?.banner -%}
    {%- endif -%}
    <div id="heading">
    	{%- if page.date -%}
    	<p>
    		<small>
    			<time datetime="{{ page.date | date(format='%Y-%m-%dT%H:%M:%S') }}">
    				{{-
    				<translate key="published" default="Published on" language_strings /> }}
    				{{ page.date | date(format=date_format) -}}
    			</time>
    			{%- if page.updated -%}
    			<span> {{ config.extra?.separator | default(value="•") }} </span>
    			<time datetime="{{ page.updated | date(format='%Y-%m-%dT%H:%M:%S') }}">
    				{{-
    				<translate key="updated" default="Updated on" language_strings /> }}
    				{{ page.updated | date(format=date_format) -}}
    			</time>
    			{%- endif -%}
    		</small>
    	</p>
    	{%- endif -%}
    
    	<h1>{{ page.title }}</h1>
    
    	{%- if page.authors or config.extra?.show_reading_time -%}
    	<p>
    		<small>
    			{%- if page.authors -%}
    			<span>{% include "partials/authors.html" -%}</span>
    			{%- if config.extra?.show_reading_time -%}
    			<span> {{ config.extra?.separator | default(value="•") }} </span>
    			{%- endif -%}
    			{%- endif -%}
    
    			{%- if config.extra?.show_reading_time -%}
    			<span>{{
    				<translate key="minutes_read" number={page.reading_time} default="$NUMBER minute read"
    					language_strings /> }}
    			</span>
    			{%- if page?.taxonomies -%}
    			<span> {{ config.extra?.separator | default(value="•") }} </span>
    			{%- endif -%}
    			{%- endif -%}
    		</small>
    	</p>
    	{%- endif -%}
    
    	{%- if page?.taxonomies -%}
    	{%- for name, taxon in page.taxonomies %}
    	<ul class="tags">
    		<a class="tag" href="{{- get_url(path=name, lang=lang) -}}">{{
    			<translate key={name} default={name} language_strings /> }}:
    		</a>
    		{%- for item in taxon -%}
    		<li><a class="tag" href="{{ get_taxonomy_url(kind=name, term=item, lang=lang) }}">{{ item }}</a></li>
    		{%- endfor %}
    	</ul>
    	<br />
    	{%- endfor -%}
    	{%- endif %}
    </div>
    
    <div id="buttons-container">
    	{%- if page?.extra?.toc and page.toc | length > 0 -%}
    	<details id="toc" class="closable">
    		<summary title="{{ <translate key=" table_of_contents" default="Table of Contents" language_strings />
    		}}"><i class="icon"></i></summary>
    		<div>
    			<strong class="title">{{
    				<translate key="table_of_contents" default="Table of Contents" language_strings /> }}
    			</strong>
    			<div>
    				<{{ list_element }}>
    					{%- for h1 in page.toc -%}
    					<li>
    						<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
    						{%- if h1.children -%}
    						<{{ list_element }}>
    							{%- for h2 in h1.children -%}
    						<li>
    							<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
    						</li>
    						{%- endfor -%}
    						</{{ list_element }}>
    						{%- endif -%}
    					</li>
    					{%- endfor -%}
    				</{{ list_element }}>
    			</div>
    		</div>
    	</details>
    	{%- endif -%}
    	{%- if config.extra?.show_backlinks and page?.backlinks | length > 0 -%}
    	<details id="backlinks" class="closable">
    		<summary title="{{ <translate key=" backlinks" default="Backlinks" language_strings /> }}"><i
    			class="icon"></i></summary>
    		<div>
    			<strong class="title">{{
    				<translate key="backlinks" default="Backlinks" language_strings /> }}
    			</strong>
    			<div>
    				<ul>
    					{%- for backlink in page.backlinks -%}
    					<li>
    						<a href="{{ backlink.permalink }}">{{ backlink.title }}</a>
    					</li>
    					{%- endfor -%}
    				</ul>
    			</div>
    		</div>
    	</details>
    	{%- endif -%}
    	<a id="go-to-top" href="#top" title="{{ <translate key=" go_to_top" default="Go to Top" language_strings />
    	}}"><i class="icon"></i></a>
    	{%- if config.extra?.show_share_button -%}
    	<a id="share"
    		href="https://shareopenly.org/share/?url={{ page.permalink }}{% if page.description %}&text={{ page.description | urlencode }}{% endif %}"
    		rel="{{ rel_attributes }}" title="{{ <translate key=" share" default="Share" language_strings /> }}"><i
    		class="icon"></i></a>
    	{%- endif -%}
    	{%- if config.extra?.issues_url -%}
    	<a id="issue" href="{{ config.extra.issues_url }}" rel="{{ rel_attributes }}" title="{{ <translate key="
    		file_an_issue" default="File an Issue" language_strings /> }}"><i class="icon"></i></a>
    	{%- endif -%}
    </div>
    
    {%- include "partials/statements.html" -%}
    
    {%- if page?.extra?.toc_inline -%}
    {%- include "partials/toc.html" -%}
    {%- elif config.extra?.toc_inline -%}
    {%- include "partials/toc.html" -%}
    {%- endif -%}
    
    {{ page.content | safe }}
    

    {%- if page.extra.comments != false and page.date -%}

    <script src="https://giscus.app/client.js" data-repo="light-cms/light-cms.github.io" data-repo-id="R_kgDOVK5Kgg" data-category-id="DIC_kwDOVK5Kgs4DJaNd" data-mapping="title" data-strict="0" data-reactions-enabled="1" data-emit-metadata="1" data-input-position="top" data-theme="preferred_color_scheme" data-lang="en" data-loading="lazy" crossorigin="anonymous" async> </script> <script src="/js/giscus-theme.js" defer></script>
    {%- endif -%}

    {%- if page?.lower or page?.higher -%}


    {%- if page.higher -%}
    {{ }}
    {{ page.higher.title }}
    {%- endif -%} {%- if page.lower -%}
    {{ }}
    {{ page.lower.title }}
    {%- endif -%} {%- endif -%} {% endblock content %} templates/partials/extra_features.html

    {%- if config.extra?.show_copy_button %}
    {{ }}
    {%- endif %}
    templates/partials/nav.html

    {%- if config.extra.nav?.auto_hide %}


    {%- endif %}

    {{ }}
    • {{- config.title -}}
    • {%- for link in config.extra.nav?.links %} {%- if link.menu and link.menu | length > 0 -%}
    • {{- -}}
        {%- for link in link.menu -%} {%- if link.url is matching(pat='^https?://') %}
      • {{- -}}
      • {%- else %}
      • {{- -}}
      • {%- endif %} {%- endfor -%}
    • {%- elif link.url is matching(pat='^https?://') %}
    • {{- -}}
    • {%- else %}
    • {{- -}}
    • {%- endif %} {%- endfor -%} {%- if config.build_search_index %} {%- endif %} {%- if config.languages | length > 0 %} {%- include "partials/language_switcher.html" %} {%- endif -%} {%- if config.extra?.default_theme and config.extra.nav?.show_theme_switcher != false or config.extra.nav?.show_theme_switcher %}
    • }}">
      • }}">
      • }}">
      • }}">
    • {%- endif %} {%- if config.feed_filenames | length > 1 and config.extra.nav?.show_feed -%}
    • }}">
    • {%- elif config.generate_feeds and config.extra.nav?.show_feed %}
    • }}">
    • {%- endif %} {%- if config.extra?.source_url and config.extra.nav?.show_repo %}
    • }}">
    • {%- endif %}
  11. unlocked this conversation on Oct 31, 2026
  12. locked and limited conversation to collaborators on Oct 31, 2026
  13. unlocked this conversation on Nov 1, 2026
  14. newsletter-newsy commented on Nov 1, 2026

    @newsletter-newsy
    Author
    • webp (Pratyay360)

    New Post:

    • content/gallery/_index.md
    • templates/gallery.html
    • templates/partials/footer.html
      content/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"
    +++

    LightCMS Banner
    Webhook Configuration
    Locking Discussion Workflow
    GitHub App Permissions
    GitHub App Settings
    Voice Dictation Setup
    templates/gallery.html

    {% extends "base.html" %}

    {% block content %}

    {{ section.title }}

    {%- if section.description %}

    {{ section.description }}

    {%- endif %}
    <div class="gallery-content" id="gallery-content">
    	{{ section.content | safe }}
    </div>
    
    {# Lightbox Modal for full size view #}
    <dialog id="gallery-lightbox" class="gallery-lightbox" onclick="if (event.target === this) closeLightbox();">
    	<div class="lightbox-content">
    		<button class="lightbox-close" onclick="closeLightbox()" aria-label="Close image">✕</button>
    		<img id="lightbox-img" src="" alt="" />
    		<p id="lightbox-caption" class="lightbox-caption"></p>
    	</div>
    </dialog>
    
    <style> .gallery-page { margin: 2rem 0 4rem; } .gallery-header { margin-bottom: 2rem; border-bottom: 1px solid var(--border, #e6e3dc); padding-bottom: 1.25rem; } .gallery-header h1 { margin: 0 0 0.5rem; font-size: 2.2rem; line-height: 1.2; } .gallery-lead { font-size: 1.15rem; color: var(--muted, #5d5d68); margin: 0; line-height: 1.5; } /* Gallery Grid */ .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; margin: 1.5rem 0 2.5rem; } /* Gallery Card */ .gallery-card { margin: 0; background: var(--surface, #f6f4ef); border: 1px solid var(--border, #e6e3dc); border-radius: var(--radius-lg, 12px); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); } .gallery-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.18); border-color: var(--accent, #5b21b6); } .gallery-media { position: relative; aspect-ratio: 16 / 10; background: var(--code-bg, #1e1e2e); overflow: hidden; cursor: pointer; } .gallery-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; } .gallery-card:hover .gallery-media img { transform: scale(1.03); } .media-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; } .gallery-media:hover .media-overlay { opacity: 1; } .zoom-icon { color: #fff; background: rgba(0, 0, 0, 0.65); padding: 0.4rem 0.85rem; border-radius: 9999px; font-size: 0.85rem; backdrop-filter: blur(4px); font-weight: 500; } .gallery-caption { padding: 0.85rem 1rem; font-size: 0.95rem; font-weight: 500; color: var(--text, #232329); line-height: 1.4; background: var(--surface, #f6f4ef); border-top: 1px solid var(--border, #e6e3dc); } /* Fallback styling for images before JS runs */ .gallery-content p:has(> img) { margin: 1.5rem 0; } .gallery-content img { border-radius: var(--radius-lg, 12px); max-width: 100%; height: auto; } /* Lightbox Dialog */ .gallery-lightbox { border: none; background: transparent; padding: 0; max-width: 92vw; max-height: 92vh; } .gallery-lightbox::backdrop { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); } .lightbox-content { position: relative; background: var(--surface, #1e1e26); border: 1px solid var(--border, #333); border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; align-items: center; max-width: 1100px; } .lightbox-content img { max-width: 88vw; max-height: 78vh; object-fit: contain; border-radius: 6px; } .lightbox-caption { margin: 0.75rem 0 0.25rem; color: var(--text, #fff); font-size: 1rem; font-weight: 500; text-align: center; } .lightbox-close { position: absolute; top: 0.5rem; right: 0.5rem; background: rgba(0, 0, 0, 0.6); color: #fff; border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; } .lightbox-close:hover { background: rgba(0, 0, 0, 0.85); } </style> <script> function openLightbox(src, caption) { const dialog = document.getElementById('gallery-lightbox'); const img = document.getElementById('lightbox-img'); const cap = document.getElementById('lightbox-caption'); if (dialog && img) { img.src = src; img.alt = caption || ''; if (cap) cap.textContent = caption || ''; dialog.showModal(); } } function closeLightbox() { const dialog = document.getElementById('gallery-lightbox'); if (dialog) dialog.close(); } document.addEventListener('DOMContentLoaded', () => { const container = document.getElementById('gallery-content'); if (!container) return; // Automatically group Markdown images into a responsive gallery grid const elements = Array.from(container.children); let currentGrid = null; elements.forEach((el) => { const imgs = el.querySelectorAll('img'); const isImageOnly = el.tagName === 'P' && imgs.length > 0 && el.textContent.trim() === ''; if (isImageOnly) { if (!currentGrid) { currentGrid = document.createElement('div'); currentGrid.className = 'gallery-grid'; el.parentNode.insertBefore(currentGrid, el); } imgs.forEach((img) => { const card = createCard(img); currentGrid.appendChild(card); }); el.remove(); } else { currentGrid = null; } }); function createCard(img) { const figure = document.createElement('figure'); figure.className = 'gallery-card'; const mediaWrap = document.createElement('div'); mediaWrap.className = 'gallery-media'; mediaWrap.onclick = () => openLightbox(img.src, img.alt); const newImg = document.createElement('img'); newImg.src = img.src; newImg.alt = img.alt || ''; newImg.loading = 'lazy'; mediaWrap.appendChild(newImg); const overlay = document.createElement('div'); overlay.className = 'media-overlay'; overlay.innerHTML = '🔍 View'; mediaWrap.appendChild(overlay); figure.appendChild(mediaWrap); const captionText = img.alt || img.title; if (captionText) { const figcaption = document.createElement('figcaption'); figcaption.className = 'gallery-caption'; figcaption.textContent = captionText; figure.appendChild(figcaption); } return figure; } }); </script>

    {% endblock content %}
    templates/partials/footer.html

    <script src="https://script.supademo.com/supademo.js"></script> <script src="/js/image-proxy.js" defer></script> {%- if config.extra.footer?.links %}
      {%- for link in config.extra.footer?.links %} {%- if link.url is matching(pat='^https?://') %}
    • {{- -}}
    • {%- else %}
    • {{- -}}
    • {%- endif %} {%- endfor %}
    {%- endif %}
    {%- if config.extra.footer?.show_copyright %}
    {%- if config.extra.footer?.copyright %}
    {{ config.extra.footer?.copyright | markdown | safe }}
    {%- else %}
    <p>&copy; {{ config.title }}, {{ now() | date(format="%Y") }}</p>
    {%- endif %}
    {%- endif %}
    
    {%- if config.extra?.source_url and config.extra.footer?.show_source %}
    <p>
    	<a class="external" href="{{ config.extra.source_url }}" rel="{{ rel_attributes }}">
    		{{-
    		<translate key="source" default="Website source" language_strings /> -}}
    	</a>
    </p>
    {%- endif %}
    
    {%- if config.extra.footer?.show_powered_by %}
    <p>
    	<small>
    		Powered by <a class="link external" href="https://www.getzola.org" rel="{{ rel_attributes }}">Zola</a> and <a class="link external" href="https://duckquill.daudix.one" rel="{{ rel_attributes }}">Duckquill</a>
    	</small>
    </p>
    {%- endif %}
    
    <div class="supademo-tour-container">
    	<button type="button" class="supademo-tour-btn" onclick="Supademo.open('cmvvdyema01exqmwtg0adiw7p')">
    		✨ Try the tour
    	</button>
    </div>
    
    {%- if config.extra.footer?.socials %}
    <ul id="external-links">
    	{%- for link in config.extra.footer?.socials %}
    	<li>
    		<a href="{{ link.url | safe }}" rel="{{ rel_attributes }} me" title="{{ link.name }}">
    			<i class="icon" style='--icon: url("data:image/svg+xml,{{ link.icon }}")'></i>
    			<span>{{ link.name }}</span>
    		</a>
    	</li>
    	{%- endfor %}
    </ul>
    {%- endif %}
    
    <style> .supademo-tour-container { margin: 1.25rem 0; } .supademo-tour-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--surface, #f6f4ef); color: var(--text, #232329); border: 1px solid var(--border, #e6e3dc); border-radius: 9999px; padding: 0.45rem 1.1rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .supademo-tour-btn:hover { background: var(--accent-soft, #f3effc); border-color: var(--accent, #5b21b6); color: var(--accent, #5b21b6); transform: translateY(-1px); } </style>
  15. 784 remaining items

  16. newsletter-newsy commented on Nov 28, 2026

    @newsletter-newsy
    Author
    • New translations documentation-site-management.md (German) (PRATYAY MUSTAFI)

    New Post:

    • content/misc/documentation-site-management.de.md
      content/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:

    • dokumentation
    • hellcms
    • opensquelle
      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:

    • Jede Seite hat einen Besitzer oder Team.
    • Beispiele und Screenshots werden überprüft, wenn sich das Produkt ändert.
    • Defekte Links und veraltete Befehle werden in CI überprüft.
    • Autoren können die Dokumentation aktualisieren, ohne ein lokales Entwickler-Setup zu benötigen.

    Für verwandtes Lesen siehe Hugo vs Astro Starlight, Was ist Front?, und Git Based CMS vs Traditionelles CMS.

  17. newsletter-newsy commented on Nov 28, 2026

    @newsletter-newsy
    Author
    • New translations content-editor.md (Russian) (PRATYAY MUSTAFI)

    New Post:

    • content/gallery/content-editor.ru.md
      content/gallery/content-editor.ru.md

    title: редактор контента
    description: >-
    Планы, обзоры и материалы редактора контента для того, чтобы они были понятными, точными, последовательными и удобными для аудитории
    date: '2026-11-28T14:31:29Z'
    draft: ложь
    tags:

    • контент
    • редактор
    • прозрачный
    • галерея
    • молнии
      isCJKLanguage: ложь
      headless: ложь

  18. newsletter-newsy commented on Nov 28, 2026

    @newsletter-newsy
    Author
    • New translations documentation-site-management.md (Russian) (PRATYAY MUSTAFI)

    New Post:

    • content/misc/documentation-site-management.ru.md
      content/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 при сохранении коммита в репозитории.

    Сделать ремонт скучным

    Лучшие системы документации немного скучные. Они имеют четкое право собственности, простую структуру папок, шаблоны для общих типов страниц и процесс обзора. У них также есть привычка удалять или обновлять устаревшие страницы.

    Несколько функций для проверки:

    • У каждой страницы есть владелец или команда.
    • Примеры и скриншоты проверяются при изменении товара.
    • Неисправные ссылки и устаревшие команды проверяются в CI.
    • Писатели могут обновлять документацию без необходимости локальной установки dev.

    For related reading, see Hugo vs Astro Starlight, What Is Front Matter?, and Git Based CMS vs Traditional CMS.

  19. newsletter-newsy commented on Nov 28, 2026

    @newsletter-newsy
    Author
    • New translations content-editor.md (Chinese Simplified) (PRATYAY MUSTAFI)

    New Post:

    • content/gallery/content-editor.zh-Hans.md
      content/gallery/content-editor.zh-Hans.md

    title: 内容编辑器
    description: >-
    内容编辑器计划、审查和改进书面材料,以便清晰、准确、一致并适合其观众。
    date: '2026-11-28T14:31:29Z'
    draft: false
    tags:

    • 内容
    • 编辑器
    • 打开源
    • 相册
    • 闪光
      isCJKLanguage: false
      headless: false

  20. newsletter-newsy commented on Nov 28, 2026

    @newsletter-newsy
    Author
    • New translations documentation-site-management.md (Chinese Simplified) (PRATYAY MUSTAFI)

    New Post:

    • content/misc/documentation-site-management.zh-Hans.md
      content/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

    使维护保养处于潜伏状态

    最好的码头系统有点松懈。他们拥有明确的所有权、简单的文件夹结构、通页类型模板和审核过程。他们还有删除或更新旧页的习惯。

    一些检查帮助:

    • 每个页面都有一个所有者或团队。
    • 当产品更改时,示例和屏幕截图会得到审核。
    • 在 CI 中检查了损坏的链接和过时的命令。
    • 作者可以更新文档而不需要本地开发者设置。

    For related reading, see Hugo vs Astro Starlight, What Is Front Matter?, and Git Based CMS vs Traditional CMS.

  21. newsletter-newsy commented on Nov 28, 2026

    @newsletter-newsy
    Author
    • New translations content-editor.md (Portuguese, Brazilian) (PRATYAY MUSTAFI)

    New Post:

    • content/gallery/content-editor.pt-BR.md
      content/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:

    • conteúdo
    • Editor
    • código-aberto
    • Galeria
    • luzes
      isCJKLanguage: Falso
      headless: Falso

  22. newsletter-newsy commented on Nov 28, 2026

    @newsletter-newsy
    Author
    • New translations documentation-site-management.md (Portuguese, Brazilian) (PRATYAY MUSTAFI)

    New Post:

    • content/misc/documentation-site-management.pt-BR.md
      content/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:

    • documentação
    • luzes
    • código-aberto
      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:

    • Cada página tem um proprietário ou uma equipe.
    • Exemplos e capturas de tela são revisados quando o produto muda.
    • Links quebrados e comandos desatualizados estão marcados no CI.
    • Os escritores podem atualizar a documentação sem precisar de uma configuração de desenvolvimento local.

    Para leitura relacionada, consulte Hugo vs Astro Starlight, O que é importante na frente?e Git Based CMS vs Tradicionais CMS.

  23. newsletter-newsy commented on Nov 29, 2026

    @newsletter-newsy
    Author
    • New translations surgesh-review-as-an-deployment-platform.md (French) (PRATYAY MUSTAFI)

    New Post:

    • content/misc/surgesh-review-as-an-deployment-platform.fr.md
      content/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:

    • poussée
    • lightcms
    • Source opensource
    • chirurgien.sh
    • statique
    • site web
      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.

    null

    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é.

    null

    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 CNAME Avec le domaine comme pour nous c'est blogs. ightcms.me

    Si vous créez un site de portefeuille, vous pouvez aimer avoir example.com —-> votre site

    Mais le transfert d'un domaine apex comme

    sous-domaine type d'enregistrement résultat
    @ NOM Déléguer le domaine apex à un enregistrement CNAME n'est pas recommandé.
    www cname Vous pouvez déléguer le sous-domaine www à un service en utilisant un enregistrement CNAME.

    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 CNAME de préférence avec le répertoire statique

    f4bdb05de2d85f25.surge.sh —> changer de domaine ie. www.example.com

    et changer le fichier de configuration

  24. newsletter-newsy commented on Nov 29, 2026

    @newsletter-newsy
    Author
    • New translations surgesh-review-as-an-deployment-platform.md (Spanish) (PRATYAY MUSTAFI)

    New Post:

    • content/misc/surgesh-review-as-an-deployment-platform.es.md
      content/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:

    • oleada
    • luces
    • código abierto
    • cirge.sh
    • estático
    • sitio web
      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.

    nulo

    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.

    nulo

    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 CNAME Con el dominio como para nosotros es blogs. ightcms.me

    Si crea un sitio de portafolio puede que le guste tener example.com —-> su sitio

    Pero transfiriendo un dominio apex como

    subdominio tipo de registro resultado
    @ NOMBRE Delegar el dominio apex a un registro CNAME no es recomendable.
    Bueno nombre Puede delegar el subdominio www a un servicio usando un registro CNAME.

    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 CNAME preferiblemente con el directorio estático

    f4bdb05de2d85f25.surge.sh —> cambiar a su dominio por ej. www.example.com

    y cambiar el archivo de configuración

  25. newsletter-newsy commented on Nov 29, 2026

    @newsletter-newsy
    Author
    • New translations surgesh-review-as-an-deployment-platform.md (German) (PRATYAY MUSTAFI)

    New Post:

    • content/misc/surgesh-review-as-an-deployment-platform.de.md
      content/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:

    • anheben
    • hellcms
    • opensquelle
    • chirurg.sh
    • statisch
    • webseite
      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.

    null

    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.

    null

    Aber die Autorität einer Website mit der Unterdomain eines Chirurgen wird im Allgemeinen mit .surge.sh Subdomains 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 CNAME enthält. Mit der Domäne wie für uns ist es blogs. ightcms.me

    Wenn Sie eine Portfolio-Seite erstellen, haben Sie vielleicht gerne beispiel.com —-> Ihre Website

    Aber die Übertragung einer Spitzendomain wie

    subdomain Typ des Datensatzes ergebnis
    @ CNAME Es wird nicht empfohlen, die Spitzen-Domäne an einen CNAME-Datensatz zu delegieren.
    Mekka cname Sie können die www Subdomain an einen Dienst delegieren, indem Sie einen CNAME Record verwenden.

    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 CNAME vorzugsweise mit dem statischen Verzeichnis

    f4bdb05de2d85f25.surge.sh —> wechseln Sie zu Ihrer Domain dz. www.example.com

    und ändern Sie die Konfigurationsdatei

  26. newsletter-newsy commented on Nov 29, 2026

    @newsletter-newsy
    Author
    • New translations surgesh-review-as-an-deployment-platform.md (Russian) (PRATYAY MUSTAFI)

    New Post:

    • content/misc/surgesh-review-as-an-deployment-platform.ru.md
      content/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 домена как

    поддомен тип записи результат
    @ ЧПУ Делегирование высшего домена записи CNAME не рекомендуется.
    www имя Вы можете делегировать www поддомен сервису с помощью записи CNAME.

    Если вы по-прежнему предпочитаете этот подход, вы можете использовать обход, перенаправив 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 предпочтительно со статическим каталогом

    f4bdb05de2d85f25.surge.sh —> change to your domain ie. www.example.com

    и изменить конфигурационный файл

  27. newsletter-newsy commented on Nov 29, 2026

    @newsletter-newsy
    Author
    • New translations surgesh-review-as-an-deployment-platform.md (Portuguese, Brazilian) (PRATYAY MUSTAFI)

    New Post:

    • content/misc/surgesh-review-as-an-deployment-platform.pt-BR.md
      content/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:

    • aumento
    • luzes
    • código-aberto
    • cirurgião.sh
    • estático
    • Site
      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.

    nulo

    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.

    nulo

    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 CNAME Com o domínio como para nós é blogs. ightcs.me

    Se fizer um site de portfólio você pode adorar ter example.com —-> seu site

    Mas transferir uma forma de domínio apex

    subdomínio tipo de registro resultado
    @ CNAME Delegar domínio apex a um registro CNAME não é recomendado.
    WWW cname Você pode delegar o subdomínio www a um serviço usando um registro CNME.

    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 CNAME de preferência com o diretório estático

    ~f4bdb05de2d85f25.surge.sh~~ —> mude para o seu domínio. www.exemplo.com

    e alterar o arquivo de configuração

  28. newsletter-newsy commented on Nov 29, 2026

    @newsletter-newsy
    Author
    • Update post surge.sh review as an deployment platform (light-cms[bot])

    Published Post:

    • content/misc/surgesh-review-as-an-deployment-platform.md
      content/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:

    • surge
    • lightcms
    • opensource
    • surge.sh
    • static
    • website
      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.

    null

    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.

    null

    But the authority score of a site using surge’s subdomain is generally deprioritized with .surge.sh subdomains.

    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 CNAME With the domain like for us it’s blogs.lightcms.me

    If making a portfolio site you may love to have example.com —-> your site

    But transferring an apex domain like

    subdomain type of record result
    @ CNAME Delegating the apex domain to a CNAME record is not recommended.
    www cname You can delegate the www subdomain to a service by using a CNAME record.

    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 CNAME preferably with the static directory

    f4bdb05de2d85f25.surge.sh —> change to your domain ie. www.example.com

    and 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

    ``bash
    makko . && surge publish ./web/
    ``

    here ./web can be dist. If automating the entire process with mise then this will be predictable, reproducible, auditable at each and every step

    ``verilog

        project: ./web/
         domain: f4bdb05de2d85f25.surge.sh
           size: 8 files, 13.8 KB
         upload: [=========================] 100%
            CDN: [=========================] 100%
     encryption: [=========================] 100%
          force: https
    

    ┌──────────┬────────────────────────────────────────────────────────────────┬─────────────────────┐
    │ 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

     CNAME     geo.surge.world
     A (apex)  138.197.235.123
    

    ``

    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

    ``yaml
    name: 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_TOKEN via

    surge token command

    and store that here

    secret

  29. newsletter-newsy commented on Nov 30, 2026

    @newsletter-newsy
    Author
    • lcms (Pratyay360)

    New Post:

    • templates/partials/title.html
      templates/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 -%}

  30. newsletter-newsy commented on Dec 2, 2026

    @newsletter-newsy
    Author
    • lcms (Pratyay360)

    New Post:

    • templates/partials/title.html
      templates/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 -%}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions