# Hugo Theme Hinode

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

AboutPrerequisitesInstallationConfigurationContributingDonateLicense

## About ![Logo](https://raw.githubusercontent.com/markdumay/hugo-theme-hinode/main/static/logo.png) - [Online Demo][demo] - [PageSpeed Insights][pagespeed] - [Mozilla Observatory][observatory] Hinode is a clean blog theme for [Hugo][hugo], an open-source static site generator. Based on the [Bootstrap 5][bootstrap] framework, the rendered site is fast, secure, and responsive. Hinode uses [FlexSearch][flexsearch] to enable full text search across your site. Finally, the theme uses [Node Package Manager][npm] to automate the build process and to keep track of dependencies. Additional features include: - Comments - Social links - Blog pagination - Code highlighting - Color customization - i18n support ## Prerequisites Hinode requires Git, Node.js and npm for local development and testing. Download the Git binary from the [official website][git_download]. Next, download and install [Node.js][nodejs] (it includes npm) for your platform. ## Installation Start a new Hinode project in three steps: ### 1. Create a new site Hinode is available as a [child theme][repository_child], and a [main theme][repository]. The child theme uses [npm][npm] to link to the latest available version of the Hinode theme. As such, it is less applicable if you plan to customize a lot. Vice versa, the main theme allows for heavy customization, but is not synchronized with the latest available Hinode theme automatically. Not quite sure? Use the Hinode child theme. #### Hinode child theme ```bash git clone https://github.com/markdumay/hugo-theme-hinode-child.git my-hinode-site && cd my-hinode-site ``` #### Hinode main theme ```bash git clone https://github.com/markdumay/hugo-theme-hinode.git my-hinode-site && cd my-hinode-site ``` ### 2. Install dependencies ```bash npm install ``` ### 3. Start development server ```bash npm run start ``` ## Configuration The main site configuration is available in `./config/_default`. Some remarks: - **Menu items** - `menus/menus.en.toml` contains language-specific items for the navigation bar and social media links for the home page's footer. - **Content** - Ensure the `mainSections` in `config.toml` is synchronized with the `content` folder, default values are `["blog", "projects"]`. - **Theme color** - Update `themeColor` and `themeOpacity` within the `[style]` section of `params.toml` to update the site's primary color and opacity. You can use the [WCAG Color Contrast Checker][contrast_checker] to validate the contrast ratio of your color to improve accessibility. - **Comments** - Comments are powered by [utterances][utterances], a lightweight comments widget built on GitHub issues. Update the `repo` of the `[comments]` section of `params.toml`. - **Security headings** - The local development server uses the header configuration as provided by `server.toml`. Similar settings are defined in the `netlify.toml` file provided in the repository's root when deploying to [Netlify][netlify]. ## Contributing 1. Clone the repository and create a new branch ```console git checkout https://github.com/markdumay/hugo-theme-hinode.git -b name_for_new_branch ``` 2. Make and test the changes 3. Submit a Pull Request with a comprehensive description of the changes ## Credits The Hinode theme is inspired by the following themes: - [Blist][blist] - a clean and fast blog theme for your Hugo site using Tailwind CSS. - [Doks][doks] - a Hugo theme for building secure, fast, and SEO-ready documentation websites, which you can easily update and customize. ## Donate Buy Me A Coffee ## License The `hugo-theme-hinode` and `hugo-theme-hinode-child` codebase is released under the [MIT license][license]. The documentation (including the "README") is licensed under the Creative Commons ([CC BY-NC 4.0)][cc-by-nc-4.0] license. [blist]: https://github.com/apvarun/blist-hugo-theme [bootstrap]: https://getbootstrap.com [cc-by-nc-4.0]: https://creativecommons.org/licenses/by-nc/4.0/ [contrast_checker]: https://accessibleweb.com/color-contrast-checker/ [doks]: https://github.com/h-enk/doks [flexsearch]: https://github.com/nextapps-de/flexsearch [git_download]: https://git-scm.com [hugo]: https://gohugo.io [netlify]: https://www.netlify.com [nodejs]: https://nodejs.org [npm]: https://www.npmjs.com [observatory]: https://observatory.mozilla.org/analyze/hinode-demo.markdumay.org [pagespeed]: https://pagespeed.web.dev/report?url=https%3A%2F%2Fhinode-demo.markdumay.org%2F [utterances]: https://utteranc.es [blog]: https://github.com/markdumay [demo]: https://hinode-demo.markdumay.org/ [license]: https://github.com/markdumay/hugo-theme-hinode/blob/main/LICENSE [repository]: https://github.com/markdumay/hugo-theme-hinode.git [repository_child]: https://github.com/markdumay/hugo-theme-hinode-child.git