Skip to content

gethinode/mod-bootstrap

Repository files navigation

Hinode Module - Bootstrap

A Hugo module to add the Bootstrap toolkit to your Hinode site

About

Logo

Hinode is a clean blog theme for Hugo, an open-source static site generator. Hinode is available as a template, and a main theme. This repository maintains a Hugo module to add the Bootstrap toolkit to a Hinode site. Visit the Hinode documentation site for installation instructions.

Notes

Vendor files

Hugo uses Go Modules under the hood. The top-level /vendor directory has a special meaning and is deleted from the release bundle after downloading. Unfortunately the algorithm is a bit too aggressive and removes the scss/modules/bootstrap/vendor from the Bootstrap repository too.

This modules uses a workaround to mount the folder from the project itself. The concerned file _rfs.scss is copied from the npm release assets by running the npm script update:vendor:step1. See gohugoio/hugo#6945 for more details.

Dart support

When transpiling with Dart Sass, use the file assets/scss/bootstrap-dart.scss as entrypoint instead of assets/scss/bootstrap.scss. The former file includes modifications to address several deprecation warnings. Run the npm command update-scss to recreate the modified files, which are derived from the Bootstrap source files. The script is not compatible with Windows, due to the different handling of double quotes on this Operating System.