Skip to content

Commit

Permalink
Prose tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored and geriom committed Aug 2, 2022
1 parent 26d3e99 commit 87cb556
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions userguide/content/en/docs/Updating/Updating-hugo-module.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
title: "Update the Docsy Hugo Module"
linkTitle: "Update the Docsy Hugo Module"
title: Update your Docsy Hugo Module
weight: 1
description: >
Update the Docsy theme to the latest version using Hugo Modules.
description: Update your Docsy theme to the latest version using Hugo Modules.
---

When using the Docsy theme as a Hugo Module, updating your theme is really easy.
Expand All @@ -20,20 +18,23 @@ Then invoke hugo's module `get` subcommand with the update flag:
hugo mod get -u github.com/google/docsy
```

Hugo automatically pulls in the latest theme version. That's it, your update is done!

Hugo automatically pulls in the latest theme version. That's it, your update is
done!

{{% alert title="Tip" %}}
If you want to set your module to a certain version inside the docsy theme repo, simply specific the name of the tag representing this version (here: _v{{% param "version" %}}_) when updating your theme:

If you want to set your module to a certain version inside the Docsy theme repo,
simply specify the name of the tag representing this version when updating your
theme, for example:

```bash
hugo mod get -u github.com/google/docsy@v{{% param "version" %}}
```

Instead of a version tag, you can also specify a commit hash inside the repo (here: _6c8a3afe_) when updating your theme:

Instead of a version tag, you can also specify a commit hash, for example:

```bash
hugo mod get -u github.com/google/docsy@6c8a3afe
```

{{% /alert %}}

0 comments on commit 87cb556

Please sign in to comment.