Skip to content

Commit 4674865

Browse files
authored
Merge pull request #658 from gethinode/develop
Launch Hinode v1
2 parents 97ffe93 + eefebe0 commit 4674865

File tree

13 files changed

+116
-81
lines changed

13 files changed

+116
-81
lines changed

content/en/docs/latest/advanced-settings/partial-development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ Next, the parent `card-group` shortcode reads the scratch variable `inner` and p
5353
## Argument validation
5454

5555
> [!NOTE]
56-
> Hinode has revised the argument validation in {{< release version="v1.0.0-beta3" short="true" link-type="link" >}}. Partials and shortcodes now use the utility function `utilities/InitArgs.html`. The previous function `utilities/IsInvalidArgs.html` is no longer supported.
56+
> Hinode has revised the argument validation in {{< release version="v1.0.0" short="true" link-type="link" >}}. Partials and shortcodes now use the utility function `utilities/InitArgs.html`. The previous function `utilities/IsInvalidArgs.html` is no longer supported.
5757
58-
{{< release version="1.0.0-beta3" >}}
58+
{{< release version="1.0.0" >}}
5959

6060
Most shortcodes support multiple arguments to configure their behavior and to refine their appearance. These shortcodes share many of these arguments with an underlying partial. Hinode uses a standardized approach to validate and initialize these arguments. All arguments are formally defined in a separate data structure file. Hinode uses the {{< abbr YAML >}} format by default, although several formats are supported. The partial `utilities/InitArgs.html` (provided by the {{< link "repository_mod_utils" >}}mod-utils module{{< /link >}}) then uses this specification to validate all arguments.
6161

content/en/docs/latest/configuration/fonts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ themeFontPath = "/fonts"
3333

3434
The font files are retrieved from the folder `static/fonts`. The {{< link webfonts_helper >}}google-webfonts-helper{{< /link >}} from Mario Ranftl is a helpful tool to download the correct font files. It also generates the proper font-face definitions. Copy the definitions to the `assets/scss/theme/fonts.scss` file and download the font files themselves to the `static/fonts` folder.
3535

36-
{{< release version="0.23.0-beta" >}}
36+
{{< release version="0.23.0" >}}
3737

3838
You can preload the font to improve loading speed. Select the primary font that is used above the page fold. In the next example, we select the `Inter regular` font of type `woff2` to preload. Hinode uses the font file extension to determine the font type automatically.
3939

content/en/docs/latest/configuration/layout.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ layout: docs
66
---
77

88
> [!IMPORTANT]
9-
> The page rendering is being revised. The documentation on this page is still to be updated. Visit this [GitHub issue](https://github.com/gethinode/hinode/issues/1430#issuecomment-2988697852) for more information.
9+
> The page rendering has been revised in Hinode {{< release version="v1.0.0" short="true" link-type="link" >}}. The documentation on this page is still to be updated. Visit this [GitHub issue](https://github.com/gethinode/hinode/issues/1430#issuecomment-2988697852) for more information.
1010
1111
Hinode uses Bootstrap's {{< link bs_grid >}}grid system{{< /link >}} and {{< link bs_breakpoints >}}breakpoints{{< /link >}} to create a responsive layout across devices or viewport sizes. All pages follow the same base layout, which includes headers and footers. The next paragraphs explain the layout styles in more detail.
1212

@@ -380,7 +380,7 @@ The below configuration shows the default configuration set in `config/_default/
380380
## Page sections
381381

382382
> [!IMPORTANT]
383-
> Page sections are no longer supported as of Hinode {{< release version="v1.0.0-beta3" short="true" link-type="link" >}}.
383+
> Page sections are no longer supported as of Hinode {{< release version="v1.0.0" short="true" link-type="link" >}}.
384384
385385
Both the home page and the list page use one or more page sections to display a sorted list of items. The lists can contain either [regular pages or page snippets]({{% relref "content-organization" %}}). The next paragraphs describe the three available layout types.
386386

content/en/docs/latest/getting-started/upgrading.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ date: 2025-06-23
55
layout: docs
66
---
77

8-
{{< release version="v1.0.0-beta4" >}}
8+
{{< release version="v1.0.0" >}}
99

1010
> [!NOTE]
1111
> Upgrading to the modules introduced in Hinode v0.16? Check out [this page](upgrading-modules) instead.
1212
13-
Hinode v1 introduced a new approach to reusable page elements. It now also support the revised template system introduced by [Hugo v0.146.0](https://github.com/gohugoio/hugo/releases/tag/v0.146.0). This release of Hinode is a breaking change with all `0.x` releases. Review the core changes below on how to upgrade your existing site to the latest Hinode version. Please use [GitHub discussions](https://github.com/gethinode/hinode/discussions/1431) when encountering any challenges, or use the [issue tracker](https://github.com/gethinode/hinode/issues) for bug reports.
13+
Hinode v{{< release version="v1.0.0" short="true" link-type="link" >}} introduced a new approach to reusable page elements. It now also support the revised template system introduced by [Hugo v0.146.0](https://github.com/gohugoio/hugo/releases/tag/v0.146.0). This release of Hinode is a breaking change with all `0.x` releases. Review the core changes below on how to upgrade your existing site to the latest Hinode version. Please use [GitHub discussions](https://github.com/gethinode/hinode/discussions/1431) when encountering any challenges, or use the [issue tracker](https://github.com/gethinode/hinode/issues) for bug reports.
1414

1515
## Content Blocks
1616

content/en/guides/_index.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,26 @@
22
author: Mark Dumay
33
title: Guides
44
description: Check our guides to get you started.
5+
content_blocks:
6+
- _bookshop_name: hero
7+
heading:
8+
title: Guides
9+
content: >-
10+
Hinode provides many ready-to-use [content blocks](/docs/content-blocks) and [components](/docs/components) to quickly develop your site. With native support for [Hugo modules](https://gohugo.io/hugo-modules/), you can easily extend your site to your liking. Explore the guides to familiarize yourself with the options.
11+
align: start
12+
width: 8
13+
breadcrumb: true
14+
15+
- _bookshop_name: articles
16+
input:
17+
section: guides
18+
reverse: false
19+
sort: weight
20+
hide-empty: false
21+
header-style: none
22+
more:
23+
title: More Guides
24+
padding: 0
25+
paginate: true
26+
class: border-0 card-zoom card-body-margin
527
---

content/en/guides/automation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Automating dependency updates
44
date: 2023-08-21
55
description: Guide on how to automate npm and hugo dependencies with GitHub actions.
66
tags: ["guide", "action"]
7-
weight: 15
7+
weight: 50
88
thumbnail:
99
url: img/cogs.jpg
1010
author: Laura Ockel

content/en/guides/custom-appearance/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Customizing the appearance of your site
33
description: Guide on how to use custom layouts to change the appearance of the homepage, single pages, and list pages.
44
date: 2024-08-20
55
tags: ["guide", "customization"]
6-
weight: 60
6+
weight: 20
77
thumbnail:
88
url: img/sketching.jpg
99
author: Firmbee.com
@@ -13,7 +13,7 @@ thumbnail:
1313
---
1414

1515
> [!IMPORTANT]
16-
> The page rendering is being revised. The documentation on this page is still to be updated. Visit this [GitHub issue](https://github.com/gethinode/hinode/issues/1430#issuecomment-2988697852) for more information.
16+
> The page rendering has been revised in Hinode {{< release version="v1.0.0" short="true" link-type="link" >}}. The documentation on this page is still to be updated. Visit this [GitHub issue](https://github.com/gethinode/hinode/issues/1430#issuecomment-2988697852) for more information.
1717
1818
## Introduction
1919

content/en/guides/editing/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ author: Mark Dumay
33
title: Creating your first site with Hinode
44
date: 2023-04-03
55
lastmod: 2024-08-18
6-
description: Guide on how to set up your site with version control using npm, GitHub and VSCode.
6+
description: Set up your Hinode site with version control using npm, GitHub and VSCode.
77
tags: ["guide", "vscode"]
88
weight: 10
99
thumbnail:
@@ -19,7 +19,7 @@ thumbnail:
1919
> [!NOTE]
2020
> The commands and code examples within this guide are written with macOS in mind. The commands should be transferrable to Windows and Linux too.
2121
22-
Hinode uses {{< link hugo >}}Hugo{{< /link >}}, a popular open-source generator, to generate a static website. Static websites do not require a database and can be [hosted virtually anywhere]({{% relref "hosting-and-deployment" %}}). In this guide, we will set up a new site using a template from GitHub. We will then edit our Markdown content with Visual Studio Code (VSCode). Lastly, we will submit our changes to the main branch.
22+
Hinode uses {{< link hugo >}}Hugo{{< /link >}}, a popular open-source generator, to generate a static website. Static websites do not require a database and can be [hosted virtually anywhere](/docs/getting-started/hosting-and-deployment/). In this guide, we will set up a new site using a template from GitHub. We will then edit our Markdown content with Visual Studio Code (VSCode). Lastly, we will submit our changes to the main branch.
2323

2424
This guide requires a GitHub account to host the remote demo repository. Next, Git, Node.js and npm are required for local development and testing. The guide also uses VSCode to edit the content. Click on each of the following links to sign up and install the required software as necessary. The software packages should be compatible with Windows, macOS, and most Linux distributions.
2525

@@ -43,7 +43,7 @@ Hinode comes in two flavors: a {{< link repository_template >}}template{{< /link
4343
{{< img src="img/github-init-step03.png" caption="Step 3. Review the initialized repository" >}}
4444
{{< /carousel >}}
4545

46-
Navigate to the {{< link repository_template >}}template repository{{< /link >}} in your browser and click on the green button `Use this template {{< fas caret-down >}}` to create a new repository. You may need to sign in to GitHub for the button to become available. Provide a meaningful name for your repository, such as `hinode-demo`. The repository's visibility can be either private or public. Public repositories can be seen by anyone, such as open-source projects. Private repositories are only visible to yourself, or to anyone you have granted access. Lastly, click on the green button `Create repository from template` to create your repository.
46+
Navigate to the {{< link repository_template >}}template repository{{< /link >}} in your browser and click on the green button `Use this template {{< fas caret-down >}}` to create a new repository. You may need to sign in to GitHub for the button to become available. Provide a meaningful name for your repository, such as `hinode-demo`. The repository's visibility can be either private or public. Public repositories can be seen by anyone. Private repositories are only visible to yourself, or to anyone you have granted access. Lastly, click on the green button `Create repository from template` to create your repository.
4747

4848
### Connecting your local machine
4949

@@ -81,7 +81,7 @@ npm install
8181
(out)found 0 vulnerabilities
8282
{{< /command >}}
8383

84-
Lastly, we will install the Hugo modules used by Hinode. Hinode supports two types of modules. **Core modules** are embedded in the main stylesheet and script bundle, ensuring they are available to all pages across the site. On the other hand, **optional modules** are only included on a page-by-page basis. For example, if your site only requires an interactive map on a few pages, you can include the Leaflet module on those pages only. This helps to reduce the size of your page assets.
84+
Lastly, we will install the Hugo modules used by Hinode. Hinode supports two types of modules. **Core modules** are embedded in the main stylesheet and script bundle, ensuring they are available to all pages across the site. On the other hand, **optional modules** are only included on a page-by-page basis. For example, if your site only requires an [interactive map](/docs/components/map/) on a few pages, you can include the Leaflet module on those pages only. This helps to reduce the size of your page assets.
8585

8686
Hinode itself is also a module that is used by the Hinode template. This allows us to use the shortcodes and other components provided by Hinode, without having to worry about their implementation. We can use {{< link hugo_modules >}}Hugo's module system{{< /link >}} to update the used modules to their latest version. Run the script `mod:update` to download and install the latest version of the modules.
8787

@@ -219,7 +219,7 @@ Check back to see the changes in your web browser. If you do not see the new pos
219219

220220
## Step 3 - Validating the changes
221221

222-
Hinode defines severals tests to validate the code adheres to [coding standards]({{% relref "contribute#coding-guidelines" %}}). Run the following command to run the tests locally. The test should confirm our code is safe to check in.
222+
Hinode defines severals tests to validate the code adheres to [coding standards](/docs/getting-started/contribute#coding-guidelines). Run the following command to run the tests locally. The test should confirm our code is safe to check in.
223223

224224
{{< command prompt="hinode-demo $" >}}
225225
npm run lint
@@ -252,13 +252,13 @@ Head over to VSCode's Source Control to view the pending changes. Click on the f
252252
> [!TIP]
253253
> By convention, a commit message should use the imperative mood and should be less than 150 characters in total. Review the blog from Initial Commit to see more {{< link initialcommit >}}best practices and guidelines to write good commit messages{{< /link >}}.
254254
255-
VSCode highlights two additional changes, one being our new post and the other a file called `hugo_stats.json`. This latter file is used by the purger to avoid required styles are removed unintentionally. Check the guide about [optimizing the user experience]({{% relref "optimization" %}}) for an elaborate deep-dive. Stage and commit these two changes too. Lastly, click on the blue button `Publish Branch` to submit the branch and its content to GitHub. For an existing branch you would push the button `Sync Changes` instead.
255+
VSCode highlights two additional changes, one being our new post and the other a file called `hugo_stats.json`. This latter file is used by the purger to avoid required styles are removed unintentionally. Check the guide about [optimizing the user experience](optimization) for an elaborate deep-dive. Stage and commit these two changes too. Lastly, click on the blue button `Publish Branch` to submit the branch and its content to GitHub. For an existing branch you would push the button `Sync Changes` instead.
256256

257257
## Step 4 - Submitting a Pull Request
258258

259259
With your changes committed to the remote develop branch, you can now merge the changes with the main branch. Head over to your repository on GitHub to submit a Pull Request (PR). Click on the green button `New pull request` within the menu `Pull Requests` to do so. Enter a descriptive title for the PR, or confirm the default title suggested by GitHub. Click on the green button to submit the PR, which triggers GitHub to run several checks.
260260

261-
By default, Hinode runs a linting test and builds the web site with the latest stable (`LTS`) versions of Node.js. The linting test is the same test that ran in the [previous step]({{% relref "#step-3---validating-the-changes" %}}). The tests act as a sort of safeguard to prevent changes breaking the main repository. You can confirm the merge when all checks have passed successfully. You can then observe the commit message associated with the `content` folder when you head back to the code of the main repository.
261+
By default, Hinode runs a linting test and builds the web site with the latest stable (`LTS`) versions of Node.js. The linting test is the same test that ran in the [previous step](#step-3---validating-the-changes). The tests act as a sort of safeguard to prevent changes breaking the main repository. You can confirm the merge when all checks have passed successfully. You can then observe the commit message associated with the `content` folder when you head back to the code of the main repository.
262262

263263
{{< carousel class="col-sm-12 col-lg-8 mx-auto" >}}
264264
{{< img src="img/github-pr-step01.png" caption="Step 1. Open a pull request" >}}
@@ -271,7 +271,7 @@ By default, Hinode runs a linting test and builds the web site with the latest s
271271

272272
## Conclusion
273273

274-
You have now successfully created your initial Hinode site with version control and automated updates. You can look into the guide to {{< link "automation" >}} automate the dependency upgrades using GitHub actions{{< /link >}}. Review the [hosting and deployment options]({{% relref "hosting-and-deployment" %}}) to see various options on how to (automatically) publish your site to a hosting provider.
274+
You have now successfully created your initial Hinode site with version control and automated updates. You can look into the guide to {{< link "automation" >}} automate the dependency upgrades using GitHub actions{{< /link >}}. Review the [hosting and deployment options](/docs/getting-started/hosting-and-deployment/) to see various options on how to (automatically) publish your site to a hosting provider.
275275

276-
[^1]: Refer to the [installation instructions]({{% relref "introduction" %}}) if you prefer to install Hinode as a regular Hugo theme.
276+
[^1]: Refer to the [installation instructions](/docs/getting-started/introduction/) if you prefer to install Hinode as a regular Hugo theme.
277277
[^2]: By default macOS synchronizes your `~/Documents` folder with iCloud. Unfortunately this interferes with npm and could lead to all kinds of synchronization issues. You can better select a folder that is **not** synchronized with iCloud and let git handle your version control.

content/en/guides/modules/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Developing Hugo modules
44
date: 2023-07-22
55
description: Guide on how to develop Hugo modules compatible with Hinode.
66
tags: ["guide", "module", "katex"]
7-
weight: 25
7+
weight: 40
88
thumbnail:
99
url: img/puzzle.jpg
1010
author: Ryoji Iwata

content/en/guides/versioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Creating versioned documentation
33
description: Guide on how to create versioned documentation using folders and branch deployments.
44
date: 2023-08-02
55
tags: ["guide", "versioning"]
6-
weight: 40
6+
weight: 60
77
thumbnail:
88
url: img/books.jpg
99
author: Chris Lawton

0 commit comments

Comments
 (0)