Repository navigation
molde verify, molde's output checks on any generator's build, and a GitHub Action that
runs check or verify on pull requests. Since 0.1.0:
Added
-
Templates get
page.title,page.descriptionandpage.index: the page's rendered
title and description patterns (the stringsstd_headprints) and itsindexvalue,
so a template can addtwitter:titleor a tag only on indexable pages without
repeating the route's patterns. Nothing to do. -
The check report's
pages_by_localeentries andi18n.sparse_localewarnings carry
the route'stemplateand, onforeachroutes,foreach(the collection) next to
route, so routes that share a path pattern can be told apart. Nothing to do. -
molde verify DIR: molde's output checks on any generator's build (Hugo, Astro, a
Next.js static export, Eleventy, Zola, or molde's ownout/current). It printscheck's
report shape pluscommand,pages,warningsandskipped, and exits 1 on an error.- Rules for foreign output: every file is classified (not-found pages, redirects and
aliases, noindex pages), and one URL model handles base paths, clean URLs and
<base href>. - New check ids:
links.outside_base,links.clean_urls,canonical.off_host,
canonical.target_missing,canonical.target_noindex,canonical.shared,redirect.target_missing,
sitemap.non_canonical_listed,sitemap.not_found,verify.base_url_mismatch,
verify.no_pages,verify.project_rootand the warningverify.all_noindex. - Release gate: each generator's official starter, committed in
tests/verify/fixtures. - See Verify any site.
molde checkis unchanged.
- Rules for foreign output: every file is classified (not-found pages, redirects and
-
A GitHub Action (
uses: ManuelFontRodriguez/molde@<version>) runscheckorverify:- it downloads the release it is pinned to (or
version:), with its SHA-256 checked; - it writes the report to the job summary and keeps one comment on the pull request up
to date, per workflow, job and site, escaping everything the report quotes; - it fails the job when the check fails (its verdict, or molde's exit code);
- every input is in
action.yml.
CI runs the action on the fixtures in every pull request.
- it downloads the release it is pinned to (or
Changed
links.internalcompares file names exactly, case included, on every file system. On
macOS (which ignores case by default) a link to/Logo.webpused to pass when the file is
logo.webp, and broke on the host (S3, Linux). A site with such a link now fails on every
machine: fix the spelling the report names. The build's files are listed once, instead of
asking the disk for each target.
Fixed
titles.duplicatecounts indexable pages only. A page carrying a robots noindex meta
(a not-found page written three times, as Next.js does, or a pager markedindex: false) is not a search result and may share a title. A site that failed only on such
pages passes. Nothing to do.- A robots noindex inside a comment, a script, a style or a
<template>is not the
page's:sitemap.noindex_listedfired on a listed page whose noindex was commented
out, andtitles.duplicatewould have skipped it. Crawlers index such a page. canonical.mismatch,og.mismatchandcanonical.not_in_sitemapcompare URLs as a
browser does: the scheme and host in any case, and an empty path the same as/
(https://Example.comandhttps://example.com:443arehttps://example.com/). A hand-written canonical that named
the right page in another spelling used to fail; it passes. The path is still compared
exactly.std_headalways wrote the normal form, so molde's own pages are unaffected.html.langaccepts a more specific tag of the page's locale:<html lang="en-US">on
anenpage used to fail, though it is valid and names the same language. A region
of another language (es-USon anenpage) still fails, and hreflang stays exact.
Nothing to do.molde serveanswers a miss with the nearest404.htmlup its path, so a prefixed
locale's/de/404.htmlshows under/de/; it used to show the root/404.html
everywhere. Nothing to do.molde serve --watchanswers from the start: it used to accept connections and answer
nothing until the startup check finished (minutes on a large site). The last good
build is served while that check runs, and with no build yet a "first build in
progress" page reloads itself until one publishes. Nothing to do.titles.multiplecounted an icon's<title>as a second page title when an SVG
sprite nests an<svg>inside a<symbol>(Sphinx's Furo theme does, on every page):
SVG and MathML are now skipped to their matching end tag. Nothing to do.- A reader that stops early (
molde check --site site | head) no longer makes molde
panic with "failed printing to stdout: Broken pipe"; the exit code is the command's
own. Nothing to do. links.internalreadhref=andsrc=in page text too, so a docs page showing HTML
in a code block (<link href="/favicon.ico">) failed on a link that
isn't one. Attributes are now read inside tags only, plus quoted URLs inside
<script>as before; a real link inside<code>still counts.href=text inside
another attribute's value, and framework bindings (:href,x-bind:href), are not
links either (gohugo.io's 788 and Starlight's 246 false errors). Nothing to do.