Skip to content
Public template

About

A template to get you started with Hinode quickly

Topics

Resources

Stars

14 stars

Watchers

1 watching

Forks

Repository files navigation

Hinode - Template

A clean documentation and blog theme for your Hugo site based on Bootstrap 5

Hugo website Netlify Status UptimeRobot Status Last commit Issues Pulls License

About

Logo

Hinode is a clean blog theme for Hugo, an open-source static site generator. Use this template if you would like to take advantage of automation features, provided by npm and GitHub actions. Visit the docs for an alternative installation that uses Hugo only.

Prerequisites

Hinode is a theme that uses Hugo modules to install and maintain various components. The Hinode template requires the following software to be installed on your local machine. The npm installer downloads the Hugo binary.

The bundled installer selects standard Hugo from v0.170.0 onward and preserves Extended for earlier releases. See the installer patch.

Installation

  1. Create a new repository

    Click the button Use this template to initialize a new repository based on this template (log in to GitHub if needed).

  2. Clone a local copy

    git clone https://github.com/owner/my-hinode-site && cd my-hinode-site # replace "owner/my-hinode-site"
  3. Install the npm packages and hugo modules

    npm install && npm run mod:update

You can now run npm run start to start a local development server.

Using pnpm (optional)

This template uses npm by default. If you prefer pnpm — faster installs, a shared package store, a 24-hour supply-chain quarantine, and stricter dependency isolation — switch with the following steps.

  1. Pin your pnpm 12 version in package.json:

    "packageManager": "pnpm@12.15.0"
  2. Replace the lockfile:

    pnpm import
    rm package-lock.json
  3. Add pnpm-workspace.yaml:

    allowBuilds:
      "hugo-extended@file:patches/hugo-extended-0.170.0.tgz": true
    minimumReleaseAge: 1440
    minimumReleaseAgeExclude:
      - "@gethinode/*"
  4. Restore PostCSS compatibility. Hugo needs an npm-format postcss bin shim, which pnpm does not create.

    Create scripts/fix-postcss-bin.cjs:

    const fs = require('fs');
    const path = require('path');
    const cmdShim = require('cmd-shim');
    
    const entry = path.join('node_modules', 'postcss-cli', 'index.js');
    const target = path.join('node_modules', '.bin', 'postcss');
    if (fs.existsSync(entry)) {
      fs.mkdirSync(path.dirname(target), { recursive: true });
      cmdShim(entry, target).catch((e) => {
        console.error('fix-postcss-bin:', e.message);
        process.exit(1);
      });
    }

    Then add to your package.json scripts: "postinstall": "node scripts/fix-postcss-bin.cjs".

  5. Install and build:

    pnpm add -D --lockfile-only cmd-shim
    pnpm install --frozen-lockfile
    pnpm run build

For the bundled GitHub Actions workflows, set up pnpm before enabling the pnpm cache, use pnpm-lock.yaml as the cache dependency path, and replace each npm install step with pnpm install --frozen-lockfile.

About

A template to get you started with Hinode quickly

Topics

Resources

Stars

14 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages