Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion content/en/docs/latest/configuration/languages.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Languages
description: Configure multiple languages to enable multilingual sites.
date: 2023-01-21
date: 2023-07-06
layout: docs
---

Expand Down Expand Up @@ -42,3 +42,12 @@ Hinode uses Hugo's [internationalization function]({{< param "links.hugo_i18n" >
- id: about
translation: "Over mij"
```

## Discarding localization

The [Hinode template]({{< param "links.repository_template" >}}) defines two languages by default. Follow the next steps to discard the Dutch language (`nl` code) entirely:

- Remove the folder `content/nl` and its nested content
- Remove the entire `[nl]` section in `config/_default/languages.toml`
- Remove the file `menus.nl.toml` section in `config/_default/menus`
- Set the value `defaultContentLanguageInSubdir` to `false` in `config/_default/hugo.toml`
9 changes: 2 additions & 7 deletions content/en/guides/versioning.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Creating versioned documentation
description: Guide on how to create versioned documentation using folders and branch deployments.
date: 2023-07-04
date: 2023-07-06
tags: ["guide", "versioning"]
weight: 40
thumbnail: img/books.jpg
Expand Down Expand Up @@ -31,12 +31,7 @@ We will now create a new site using the Hinode template. Follow the **first step

For the purpose of this guide we will support the English language only. Be sure to create a new branch first, so you can test any changes before publishing them. The remainder of this guide uses the `develop` branch for development and the `main` branch for production.

- Remove the folder `content/nl` and its nested content
- Remove the entire `[nl]` section in `config/_default/languages.toml`
- Remove the file `menus.nl.toml` section in `config/_default/menus`
- Set the value `defaultContentLanguageInSubdir` to `false` in `config/_default/hugo.toml`

Start a local server to test the site is working as expected. Navigate in your browser to the local address (`http://localhost:1313/` by default) to visually inspect the site.
Follow the steps decribed in the language configuration to [discard the localized content for the Dutch language]({{< relref "languages#discarding-localization" >}}). Start a local server to test the site is working as expected. Navigate in your browser to the local address (`http://localhost:1313/` by default) to visually inspect the site.

{{< command user="user" host="localhost" prompt="version-demo $" >}}
npm run start
Expand Down