Trailhead: moving from Jekyll

In your terminal ssqch docs --from jekyll

Jekyll sites move well: Liquid runs as it is, _layouts/, _includes/ and _data/ keep their names, and redirect_from, relative_url, markdownify and jsonify work. What takes the time is the Ruby around the templates (Jekyll's page and site, its plugins) and kramdown, Jekyll's Markdown.

A real-world site (382 pages in 29 languages, on GitHub Pages' gem) was moved this way as a study: the same 478 files, 95% of pages with the same text, and builds 5.9 times faster. Two thirds of the work was kramdown's markdown="1", which ssqch reads now: markdown: { htmlMarkdown: "kramdown" } (below).

Scouting

ssqch scout (see Scouting a site) lists what this guide describes for your site, with file and line, and drafts the mechanical part. It reads the files a fresh checkout has: ones git doesn't track (notes, a scratch folder) are left out of passthrough, and listed. Its draft is a first ssqch.config.js from _config.yml: Liquid for Markdown and HTML pages, layouts_dir, kramdown's Markdown options, exclude as ignore, the files Jekyll copies as they are (those without front matter) as passthrough, site read from _config.yml, the defaults for every page as data, and the plugins it knows (jekyll-sitemap, jekyll-redirect-from, jekyll-feed; Sass when there's a _sass folder or a stylesheet with front matter). It drafts directory data for _posts (the posts tag and the permalink style) and for each collection (its tag, its defaults, and its permalink, or none when output isn't true), and for the other folders defaults names. It turns on fromJekyll(), so layouts, includes and pages keep Jekyll's page and site as they're written (page.title, site.posts, site.data.locales, post.title). For what the plugins wrote beside the pages it drafts _includes/seo.liquid (jekyll-seo-tag's tags), redirects.liquid (jekyll-redirect-from's /redirects.json), robots.liquid (jekyll-sitemap's /robots.txt, when the site has none) and a redirect hook with the new URL whole; for a GitHub Pages site, site.url from CNAME (as jekyll-github-metadata gave it) and Rouge's markup on code. Its edits are only what's mechanical: {% seo %} includes _includes/seo.liquid, a .rss or .xml layout becomes .liquid, and a file with front matter in another extension gets render and a permalink. It lists the rest with file and line: where Jekyll's excerpt and sort mean something else, Jekyll's own page keys (page.next), plugins' tags, kramdown's attribute lists ({: .class}), each _plugins/*.rb and what it registers, and what each plugin is in ssqch. It changes nothing on its own: --write-draft writes the draft and --patch move.patch the edits, to read and git apply. That site went from a fresh checkout to a full build with no hand edits this way, and 306 of its 404 pages matched Jekyll's.

A whole move with the loop, scout's report before, halfway and at the end, with baseline and diff between: A move, step by step.

ssqch scout                                   # what moving the site takes
ssqch scout --write-draft --patch move.patch  # write the draft, and the edits as a patch
git apply move.patch                          # after reading it

The jekyll-guides example is a small Jekyll site laid out as Jekyll lays one out, with these settings: its layouts and pages are written for Jekyll and run as they are.

A Jekyll move, worked

A small Jekyll site (two posts, a guides collection, {% seo %}, jekyll-redirect-from and jekyll-sitemap) moved with scout. The output is scout's own, trimmed. In the Jekyll site, committed to git:

$ ssqch scout
Scouting the Jekyll site in . (found _config.yml)

6 to do: 3 ssqch does, 3 an option does (the draft turns it on).

Reference build
  ssqch baseline "bundle exec jekyll build"

To do (6)
  ssqch.config.js: 2 of 4 pages have no date of their own (_guides/cedar.md, _guides/old-growth.md): ...
  index.html: `excerpt` isn't Jekyll's: ...
  [option] .: 2 `markdown="1"` elements: `htmlMarkdown: "kramdown"` (in the draft) reads them as kramdown does
  [option] Gemfile: jekyll-redirect-from -> `redirectsPlugin()`, in the draft: ...
  [option] Gemfile: jekyll-sitemap -> `sitemapPlugin({ url: site.url })`, in the draft ...
  .: no package.json: `npm init -y && npm pkg set type=module && npm install -D ssqch` pins the version the site builds with (...)

Draft (7 to write): --write-draft writes them, and never overwrites a file
  ssqch.config.js (a first draft, from _config.yml)
  _includes/seo.liquid (jekyll-seo-tag's tags, for `{% seo %}`: ...)
  _posts/_posts.json (Jekyll's posts: the `posts` tag, and the permalink)
  _guides/_guides.json (the `guides` collection: its tag and permalink)
  redirects.liquid (jekyll-redirect-from's /redirects.json)
  robots.liquid (jekyll-sitemap's /robots.txt (the site has none))
  _includes/hooks/redirect.liquid (jekyll-redirect-from's page for each old URL)

Edits (1): --patch <file> writes them as a patch to review, and changes nothing
  _layouts/default.html: {% seo %} -> {% include seo.liquid %}

Build the reference first, while the site is still all Jekyll (Every build is the same: 7 pages and 4 other files.). Then write the draft and the patch, read them, build with the time the reference was built with (the last commit's), and compare:

ssqch baseline "bundle exec jekyll build"
ssqch scout --write-draft --patch move.patch
git apply move.patch
rm move.patch
npm init -y && npm pkg set type=module && npm install -D ssqch
SOURCE_DATE_EPOCH=$(git log -1 --format=%ct) npx ssqch build
npx ssqch diff .cache/ssqch/baseline/ref-1 _site

The drafted config built the site with no hand edits:

note: redirect_from works; ssqch calls it aliases (ssqch docs aliases)
note: markdownify works; ssqch calls it markdown (ssqch docs markdown)
First confirmed sighting. Built in 96.6 ms (production)
  Pages   8 written from 8 templates, 12.9 KB
  Copied  1 file, 132 B
  Output  _site: 11 files, 14.3 KB
  Time    setup 1.82 ms, data 246 µs, read 3.81 ms, paginate 13.0 ms, render 50.7 ms, write 3.73 ms, copy 1.66 ms, after 1.06 ms

The comparison with Jekyll 4.4.1's build, trimmed to the first line of each change (...), with the attribute each group is about written beside it here:

...
Changed (7)
  The same change on more than one file, the most files first (--ungrouped lists each file with all of it):
  ~ 6 pages: ...
      - <!-- Begin Jekyll SEO tag v2.9.1 -->
      + <!-- Begin Jekyll SEO tag v2.8.0 -->
  ~ 6 pages, the same but for attribute values: ...    # twitter:description
  ~ 6 pages, the same but for attribute values: ...    # twitter:title
  ~ 4 pages, the same but for attribute values: ...    # article:modified_time
  And what's left on 2 files:
  ~ /guides/old-growth/  (text and markup)
  ~ /sitemap.xml

Changes found: 6 pages and 1 other file (7 changed, 0 added, 0 removed); 1 page and 3 other files are the same. The stump has moved.

The first four are this site's newer jekyll-seo-tag (below). /guides/old-growth/ has a {% highlight %} block whose words ssqch's highlighter marks differently from Rouge, and sitemap.xml is ssqch's own (another order and form). redirects.json and robots.txt came out the same.

Run ssqch scout again: the patch's edit is gone from the list and there's nothing left to write. What's left is for you to decide: whether undated pages take git's date (dateFallback: "git"), and whether any page needs <!-- more --> where Jekyll's excerpt ended. markdown="1" counts as done with fromJekyll() in the config, and the two plugins' [option] lines stay listed for you to check. Commit package.json with the move, and remove move.patch once it's applied.

Build it both ways first

Build the Jekyll site from a fresh checkout twice and compare the two: a page that prints the build's time (an undated article gets site.time) differs on every build. Pin it with a second config file holding time: 2026-01-01 00:00:00 +0000 (jekyll build --config _config.yml,pin.yml), and build ssqch with the same time: SOURCE_DATE_EPOCH=1767225600. GitHub Pages' gem needs PAGES_REPO_NWO=owner/repo in a checkout without a git remote. Then build with ssqch into an empty folder and compare the two with ssqch diff jekyll-site ssqch-site.

The config

Start with templateFormats: ["liquid", "md", "html"], markdownEngine: "liquid" and htmlEngine: "liquid", so Markdown and HTML pages run through Liquid first, as in Jekyll, and dirs: { layouts: "_layouts" }. Jekyll drops the blank lines after a template's closing ---, and ssqch keeps them: in HTML they're whitespace that browsers and ssqch diff don't see, but a feed has to start with <?xml and a text file's first line is its first line, so take the blank line out of those templates (ssqch scout --patch does).

import { defineConfig, readData } from "ssqch";
import { fromJekyll } from "ssqch/from-jekyll";
import { sitemapPlugin } from "ssqch/sitemap";
import { redirectsPlugin } from "ssqch/redirects";

const site = readData("_config.yml");

export default defineConfig({
  templateFormats: ["liquid", "md", "html"],
  markdownEngine: "liquid",
  htmlEngine: "liquid",
  dirs: { layouts: "_layouts" },
  ignore: ["Gemfile", "Gemfile.lock", "README.md", "script/**"],
  data: { site },
  // Jekyll's `page` and `site` in templates, and kramdown's Markdown.
  plugins: [fromJekyll(), sitemapPlugin({ url: site.url }), redirectsPlugin()],
});

fromJekyll() from ssqch/from-jekyll is what a Jekyll site's templates and Markdown expect, as one plugin. templates (on by default) gives templates Jekyll's page and site (below). kramdown (on by default) is kramdown's habits, each a default your own markdown can change: Markdown inside markdown="1" HTML (htmlMarkdown: "kramdown"), kramdown's heading ids (headingIds: "kramdown"), smart quotes (smartPunctuation: true), and no links from bare URLs (autolinks: false). fromJekyll({ templates: false }) leaves templates as ssqch's.

Jekyll (_config.yml)ssqch (ssqch.config.js)
title, description, url, any keyreadData("_config.yml") as data: { site }, so site.title still works
exclude: [docs, Gemfile]ignore: ["docs/**", "Gemfile"]. A Bundler install (vendor/bundle) is skipped by itself.
_data/locales/fr.yml as site.data.locales.frlocales.fr: _data is global data, and a folder in it is an object. Add data: { site: { ...site, data: ... } } only if templates must keep site.data.
collections: { guides: { output: true, permalink: "/:path/" } }collections: { guides: (c) => c.byGlob("_guides/**") }, and _guides/_guides.json with the permalink: { "permalink": "{{ page.filePathStem | remove_first: '/_guides' }}/" }
defaults for a pathDirectory data in that folder: _guides/_guides.json with { "layout": "guide" }
site.guides in a template (a collection's items)The same with fromJekyll(). Without it, collections.guides (the tag or the config's collection), whose items keep front matter under data and the rendered page in templateContent (Jekyll's post.content)
layouts_dirdirs: { layouts: "_layouts" }
sass: { load_paths }sassPlugin({ files, loadPaths }) from ssqch/sass. Front matter on a .scss file is fine.
time:SOURCE_DATE_EPOCH=1767225600 ssqch build (seconds since 1970): now() and every undated page get that time, as with time:
timezone: America/New_YorktimeZone: "America/New_York". A date written without a time (date: 2026-11-02) is that day, midnight in this zone, as Jekyll reads it; without timeZone, ssqch uses UTC
A page with no date of its ownIts file's time in ssqch, which a checkout or a save moves: dates and the order of lists change from one build to the next, and on each save ssqch serve renders the pages that show it (every page that reads collections, when the site's code sorts by dates). dateFallback: "git" gives it its last commit's date (ssqch scout counts the pages that have none)

Templates

  • page, site and front matter: fromJekyll() (in scout's draft) gives templates Jekyll's page and site: page.title and the rest of the front matter, site.posts (newest first), site.<collection>, site.data, site.categories and site.tags, with items in Jekyll's shape (post.title, post.content, post.excerpt), so layouts and includes run as they're written. Without it, front matter is at the top level ({{ title }}), page has the file's facts (page.url, page.inputPath, page.date, page.headings), and items keep front matter under data; the build warns once for each page.<key> that's front matter.
  • site.posts and collections: with fromJekyll(), site.posts and site.articles are there as in Jekyll. ssqch's own names for them are collections.posts and collections.articles (a folder's directory data tags its pages articles), whose items keep front matter under data (post.data.title, | where: "data.lang", "fr"), with post.templateContent and post.page.excerpt.
  • Excerpts: Jekyll's excerpt is the source up to excerpt_separator (the first blank line by default), rendered; ssqch's page.excerpt is the rendered page up to a <!-- more --> comment, or else its first paragraph. They're the same for a post that starts with a paragraph; for one that starts with a heading, a list or a quote, put <!-- more --> where Jekyll's separator was. excerpt_separator: <!--more--> in _config.yml is the same as ssqch's.
  • A language menu and hreflang links (each page's translations, looked up in a loop over every page): ssqch has no built-in i18n yet. The Liquid loop works as it is, but it runs on every page; a filter that groups the pages once is faster, translations: (pages, url) => ... in the config's filters (ssqch docs "Multilingual sites").
  • Jekyll's tags: {% highlight ruby %}...{% endhighlight %} writes Jekyll's <figure class="highlight"> with ssqch's highlighter, and {% link _posts/2016-07-26-pine.md %} and {% post_url 2016-07-26-pine %} are that page's URL (a path no page has is an error that names it). A site's own highlight function keeps that tag.
  • site.data: _data is global data (site.data.locales is locales in ssqch); with fromJekyll(), site.data.locales works too.
  • Includes: {% include nav.html section="home" %} works, with include.section, and so does {% include_relative parts/intro.md %}. A file read by include_relative is a page of its own too, if it's Markdown: give its folder permalink: false in directory data.
  • Plugin tags ({% seo %}, {% feed_meta %}): an include, or a function in filters that returns the HTML: the config's functions are Liquid tags ({% seo title=false %} calls seo({ title: false })). A function sees only what it's given, so pass it the page and the front matter it reads ({% seo page, title, description %}). ssqch docs "From jekyll-seo-tag" has an include that writes jekyll-seo-tag's tags.
  • Filters: relative_url, markdownify and jsonify work, and where is fast. Math, split and blocks that only assign behave as in Ruby's Liquid ("r>" | times: 1 is 0, which jekyll-toc depends on). xml_escape (' as &apos;), normalize_whitespace, where_exp, group_by and sort of a hash (into [key, value] pairs, by key) write what Jekyll's do. With a property, Jekyll's sort puts pages missing it first and ssqch's (Liquid's) last, so sort then handle the missing ones, or pass a list from the config. A whole float prints as 5 (Ruby writes 5.0). truncate and truncatewords are Ruby's Liquid 4's. Front matter dates in Jekyll's form (2009-12-25 10:41:06 +0000) are read, and a key written twice is the last one, with a warning.
  • A table of contents: toc(page.headings, { class: "section-nav", itemClass: "toc-entry toc-h{level}" }) writes jekyll-toc's markup, so its CSS keeps working ({{ page.headings | toc: class: "section-nav" }} in Liquid). It reads the page's headings after it renders, so it goes in the layout.
  • Files with front matter: Jekyll renders any file that starts with ---. In ssqch a .js (or .txt) file needs an engine: engines: { js: (s) => s }, "js" in templateFormats, and "render": "liquid,js" with a .js permalink in that folder's directory data ("Text files with front matter" in Templates and data).

Plugins

Jekyllssqch
jekyll-redirect-fromredirect_from works (ssqch calls it aliases, and templates read it as aliases: p.data.aliases), with redirectsPlugin(); _includes/hooks/redirect.* for its page's markup (ssqch scout drafts jekyll-redirect-from's). Its redirects.json is a template (below).
jekyll-sitemapsitemapPlugin({ url: site.url }). Its robots.txt is a template too (below). It needs the site's address: Jekyll's url (url: https://example.com in _config.yml, which site.url reads). jekyll-sitemap wrote paths from the root without one, which search engines can't read; ssqch's build stops and asks for it, and ssqch scout leaves the plugin commented out in its draft until url is there
jekyll-feedfeedPlugin({ url }) from ssqch/rss: /feed.xml with no template (A feed for a blog)
jekyll-seo-tagAn include that writes its tags (below, and ssqch scout drafts it), or a seo function (a tag)
jekyll-toctoc(page.headings, ...), above
jekyll-last-modified-atlastModified: "git": Jekyll's page.last_modified_at is page.lastModified, and page.updated is the date for a post's "updated" line (A post's "updated" line); a last_modified_at in front matter is last_modified_at, at the top level
A photo gallery (a plugin, or a loop over site.static_files, which ssqch doesn't have)A data file that lists the photos with files(), a page per album and imagePlugin() for the sizes: A photo album from a folder
jekyll-github-metadataData in the config (site.github.repository_nwo)
github-pages' default theme (jekyll-theme-primer)Nothing: it writes /assets/css/style.css. Check whether a page links to it.

redirects.json and robots.txt

Two files that Jekyll's plugins wrote beside the pages. ssqch scout drafts both as templates, for a site with data: { site } and liquid in templateFormats (the draft's config has them):

---
permalink: /redirects.json
excludeFromCollections: true
---
{%- comment -%} redirects.liquid: jekyll-redirect-from's redirects.json, each old URL and the new one. {%- endcomment -%}
{%- assign docs = collections.all | sort: "inputPath" -%}
{%- assign first = true -%}
{ {%- for doc in docs -%}{%- for from in doc.data.aliases -%}{%- unless first %},{% endunless -%}{{ from | jsonify }}:{{ site.url | append: doc.url | jsonify }}{%- assign first = false -%}{%- endfor -%}{%- endfor -%} }
---
permalink: /robots.txt
excludeFromCollections: true
---
Sitemap: {{ site.url }}/sitemap.xml

A page with redirect_from: [/pine-cones/] makes redirects.json {"/pine-cones/":"https://example.com/news/2026/03/pine-cone-season/"}. jekyll-sitemap wrote robots.txt only when the site had none, so keep the site's own file if it has one, and don't add the second template. If the bytes don't matter, robotsPlugin() from ssqch/robots writes the file instead of the template, with sitemapPlugin()'s address and a group that lets every crawler in (robots.txt).

From jekyll-seo-tag

Jekyll's {% seo %} becomes an include, {% include seo.liquid %} in the layout. This one writes what jekyll-seo-tag 2.8 writes, in its order and its bytes, for a site whose _config.yml is read as site (data: { site: readData("_config.yml") }) and whose pages have title, description and image in front matter. As jekyll-seo-tag does, the title and description go through markdownify for their quotes and dashes; the canonical link and og:url need site.url; a dated page (front matter date, or a post's or collection's tags) is an article with its published_time and a BlogPosting; the home page (/ or /about/) is a WebSite with a name; site.twitter.username, site.facebook.publisher and site.logo add their tags; and the generator is ssqch's (ssqch scout's draft for a Jekyll site writes Jekyll's version there instead, from Gemfile.lock, so the first build matches). Add the tags for options this leaves out (authors, fb:app_id, webmaster verifications). A site on jekyll-seo-tag 2.9 differs from it in a few lines: 2.9.1 writes <meta name="twitter:title"> where 2.8 wrote property=, one <meta name="twitter:description" property="og:description"> beside the description, and an article:modified_time on a dated page. Edit those lines of the include to match.

{%- comment -%} _includes/seo.liquid {%- endcomment -%}
{%- assign site_title = site.title | default: site.name | markdownify | strip_html | normalize_whitespace | escape_once -%}
{%- assign page_title = title | markdownify | strip_html | normalize_whitespace | escape_once | default: site_title -%}
{%- assign about = description | default: site.description | markdownify | strip_html | normalize_whitespace | escape_once -%}
{%- if page_title != site_title -%}{%- assign full_title = page_title | append: " | " | append: site_title -%}{%- elsif site.description -%}{%- assign full_title = site_title | append: " | " | append: about -%}{%- else -%}{%- assign full_title = site_title -%}{%- endif -%}
{%- assign canonical = site.url | append: page.url -%}
{%- if image -%}{%- assign image_url = site.url | append: image -%}{%- endif -%}
{%- if date or tags -%}{%- assign published = page.date | date_to_xmlschema -%}{%- endif -%}
{%- if page.url == "/" or page.url == "/about/" -%}{%- assign ld_type = "WebSite" -%}{%- elsif published -%}{%- assign ld_type = "BlogPosting" -%}{%- else -%}{%- assign ld_type = "WebPage" -%}{%- endif -%}
<!-- Begin Jekyll SEO tag v2.8.0 -->
<title>{{ full_title }}</title>
<meta name="generator" content="{{ ssqch.generator }}" />
<meta property="og:title" content="{{ page_title }}" />
<meta property="og:locale" content="{{ lang | default: site.lang | default: "en_US" | replace: "-", "_" }}" />
{% if about %}<meta name="description" content="{{ about }}" />
<meta property="og:description" content="{{ about }}" />
{% endif %}{% if site.url %}<link rel="canonical" href="{{ canonical }}" />
<meta property="og:url" content="{{ canonical }}" />
{% endif %}<meta property="og:site_name" content="{{ site_title }}" />
{% if image_url %}<meta property="og:image" content="{{ image_url }}" />
{% endif %}{% if published %}<meta property="og:type" content="article" />
<meta property="article:published_time" content="{{ published }}" />
{% else %}<meta property="og:type" content="website" />
{% endif %}<meta name="twitter:card" content="{% if image_url %}summary_large_image{% else %}summary{% endif %}" />
{% if image_url %}<meta property="twitter:image" content="{{ image_url }}" />
{% endif %}<meta property="twitter:title" content="{{ page_title }}" />
{% if site.twitter.username %}<meta name="twitter:site" content="@{{ site.twitter.username | remove: "@" }}" />
{% endif %}{% if site.facebook.publisher %}<meta property="article:publisher" content="{{ site.facebook.publisher }}" />
{% endif %}<script type="application/ld+json">
{"@context":"https://schema.org","@type":{{ ld_type | jsonify }}{% if published %},"dateModified":{{ published | jsonify }},"datePublished":{{ published | jsonify }}{% endif %}{% if about %},"description":{{ about | jsonify }}{% endif %},"headline":{{ page_title | jsonify }}{% if image_url %},"image":{{ image_url | jsonify }}{% endif %}{% if ld_type == "BlogPosting" %},"mainEntityOfPage":{"@type":"WebPage","@id":{{ canonical | jsonify }}}{% endif %}{% if ld_type == "WebSite" %},"name":{{ site_title | jsonify }}{% endif %}{% if site.logo %},"publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":{{ site.url | append: site.logo | jsonify }}}}{% endif %},"url":{{ canonical | jsonify }}}</script>
<!-- End Jekyll SEO tag -->

A function can write all of it instead, when the template passes it what it needs: functions are Liquid tags too, so {% seo page, title, description %} calls seo(page, title, description) (a function doesn't see the page unless it's given). One real-world port did that, writing jekyll-seo-tag's bytes, JSON-LD included, in 100 lines.

Porting a site's own plugins

A Jekyll site's own Ruby plugins (_plugins/*.rb) can't run in ssqch, but each kind has an ssqch feature that does its job. ssqch scout lists each file with what it registers; port each to that feature, in a module of the site's own that the config imports (lib/jekyll.js), and build and compare with ssqch diff after each. One real-world site's 8 plugins (705 lines of Ruby) became 572 lines of JavaScript.

In the RubyWhat it isIn ssqch
Liquid::Template.register_filter(Module)A filter for each method of the moduleA function in filters: posted_by: (date, author) => ...; the method's arguments are the function's
Liquid::Template.register_tag("name", Class)A tagA function in filters is a tag too: {% translation_status %} calls translation_status() and prints what it returns; a block tag's function gets the content first
@context.registers[:site], @context.environments.first["page"]The site or the page, read from Liquid's contextA function sees only its arguments: pass what it reads ({{ post.date | posted_by: post.author, lang }}), or keep site-wide lists in the module, filled by a collection function
class X < Jekyll::Generator that adds Jekyll::PagesPages made from data (archives by year and month)A collection function that returns one object per page ({ url, layout, title, posts }), and one template paginated over it with size: 1 and a permalink from the item
Jekyll::Hooks.register :site, :post_read that sets page.data[...]Data on every pagecomputed in the config's data
Jekyll::Hooks.register :site, :post_write that writes filesFiles written after the build: a search index, llms.txtafterBuild: a function, or a program ({ run: "npx pagefind --site _site" })
Jekyll::ConverterA file type of its ownAn engine for its extension (engines)

What a plugin printed with Ruby's own methods (strftime, Time#to_s, Hash order) has to be written the same way in JavaScript: Ruby's sort isn't stable, and a whole Float prints as 4.0. If Jekyll's build needs a file a tool writes first (a Tailwind compiled.css that's in .gitignore), put that step in the baseline's command (ssqch baseline "npm run build-css && bundle exec jekyll build") and in ssqch's: beforeBuild: [{ run: "npm run build-css" }].

Markdown

ssqch's Markdown is CommonMark; Jekyll's is kramdown. fromJekyll() turns on what comes closest. What differs:

  • markdown="1" on an HTML element (kramdown reads its content as Markdown): htmlMarkdown: "kramdown" reads it the same way, and keeps kramdown's HTML rules (a block element is raw to its end tag, blank lines and all). Without it, ssqch writes the element as it is and Markdown inside stays text. A container (::: name) is ssqch's own way to wrap Markdown in HTML.
  • Heading ids: headingIds: "kramdown" gives kramdown's: its GFM ids for the page's headings (accents and other letters kept, emoji dropped), and its ASCII ids for headings inside markdown="1" HTML (section, section-1). Repeats are counted within each, where kramdown counts them across the page.
  • Bold next to punctuation (**完成。**下一步) closes in kramdown but not in CommonMark.
  • Code: GitHub Pages adds Rouge's class="language-plaintext highlighter-rouge" to code; ssqch doesn't (markdown: { highlight: true } highlights, with its own classes). To keep those classes on code spans, write them in a code render hook: _includes/hooks/code.liquid with <code class="language-plaintext highlighter-rouge">{{ code.code | escape }}</code> (Code spans).
  • A link's or image's title in a hook: link.title and image.title are nil when there's none (or it's ""), so {% if link.title %} title="{{ link.title | escape }}"{% endif %} writes the attribute only for a link that has a title, though an empty string is otherwise true in Liquid. Don't test link.title != "": nil isn't "", so every link would get title="".
  • Link URLs: ssqch percent-encodes non-ASCII characters in them (#كتابة as #%D9%83...) and kramdown keeps them. Browsers go to the same place, and ssqch diff reads them as the same. Smart quotes next to non-Latin letters can come out differently; readers see the same page.

Checking the move

ssqch baseline "bundle exec jekyll build" builds the Jekyll site three times from fresh copies, with the clock pinned and the site's gems linked in (.bundle and its BUNDLE_PATH), into .cache/ssqch/baseline/ref-1 to -3, with Jekyll's site.time pinned by a time: config of its own, and says what changes by itself; then ssqch diff .cache/ssqch/baseline/ref-1 _site lists the files that differ and how. Most of what's left after the steps above is Markdown: kramdown's spacing and quotes. linksPlugin() from ssqch/links checks every internal link and anchor on each build.

Only dates changed: a file whose changes are all dates or years says only dates changed (2025 -> 2026), and when every changed file is like that the summary says All N changed files differ only in dates or years. Look at where the date comes from. An undated page gets site.time in Jekyll (pinned above) and its file's time in ssqch, which a fresh checkout sets: give the page a date, set dateFallback: "git", or for a copyright year print the build's time, {{ "now" | date: "%Y" }} (Dates that changed).