in root.html). Outputs custom og:image with assets_prefix normalisation and non-Google site verification. --> Vendor assets | zer0-mistakes in _layouts/root.html. What this file adds: - Custom og:image with preview_images.assets_prefix path normalisation for the theme-specific page.preview and page.header.og_image keys. When page.image is set, jekyll-seo-tag handles og:image and this file skips its own og:image output to avoid duplicate tags. - Non-Google site verification tags (Bing, Yandex, Naver, Baidu) Dependencies: - jekyll-seo-tag plugin (loaded in _layouts/root.html via Vendor assets | zer0-mistakes ) - site.preview_images config in _config.yml =================================================================== --> Vendor assets | zer0-mistakes Skip to main content
Settings
Search
Appearance
Theme Mode
About
Jekyll v3.10.0
Environment Production
Last Build
2026-04-10 14:49 UTC
Current Environment Production
Build Time Apr 10, 14:49
Jekyll v3.10.0
Build env (JEKYLL_ENV) production
Page Location
Page Info
Layout default
Collection docs
Path _docs/development/vendor-assets.md
URL /docs/development/vendor-assets/
Date 2026-04-10
Theme Skin
SVG Backgrounds
Layer Opacity
0.6
0.04
0.08

Vendor assets (local bundles)

Third-party libraries (Bootstrap, jQuery, Bootstrap Icons, MathJax, Mermaid, Font Awesome, GitHub Calendar, etc.) are committed under assets/vendor/. GitHub Pages’ default Jekyll build does not run npm or curl, so everything the theme needs at runtime must be present in the repository (or in the published gem).

Refreshing vendor files (maintainers)

  1. Manifest: vendor-manifest.json lists curl-based assets (Bootstrap, MathJax, etc.) with SHA-256 checksums.
  2. Mermaid (npm only): The theme does not download Mermaid from jsDelivr. Install the package and copy the built dist file:

    npm install
    npm run vendor:mermaid
    

    scripts/vendor-install.sh also runs this copy step after manifest downloads when node_modules/mermaid is present.

  3. Full vendor refresh: From the repo root:

    npm install
    ./scripts/vendor-install.sh
    

    Options: --force (re-download manifest files), --dry-run, --verbose.

  4. Dependencies: curl, jq, and sha256sum or shasum (macOS). Node/npm for Mermaid. The dev Docker image installs jq for this workflow.

  5. npm shortcut for manifest-only downloads:

    npm run vendor:install
    

After upgrading versions, update package.json / lockfile for Mermaid or the manifest for curl assets, then commit changes under assets/vendor/.

Optional npm Bootstrap build (advanced)

npm run css:bootstrap compiles Bootstrap SCSS into assets/css/vendor/bootstrap-from-npm.css. The default theme does not use this file; it uses assets/vendor/bootstrap/css/bootstrap.min.css. Do not link both full Bootstrap stylesheets.

  • _includes/core/head.html — Bootstrap CSS, Bootstrap Icons, MathJax, main.css
  • _includes/components/js-cdn.html — jQuery, Bootstrap bundle
  • _includes/components/mermaid.html — Mermaid + Font Awesome (when mermaid: true)
  • _config.ymlmermaid.src points at the local mermaid.min.js path