📝 Add note about `hugo mod clean` command

pull/650/head
James Panther 2023-10-23 09:47:44 +11:00
parent dd600a2832
commit 29f7bb8c55
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,10 @@ Hugo will automatically update any modules that are required for your project. I
Then simply rebuild your site and check everything works as expected. Then simply rebuild your site and check everything works as expected.
{{< alert >}}
When updating modules, sometimes Hugo will cache an older version of the theme. If this happens, clear your local cache by using the `hugo mod clean` command and then rebuild your site.
{{< /alert >}}
### Update using git ### Update using git
Git submodules can be updated using the `git` command. Simply execute the following command and the latest version of the theme will be downloaded into your local repository: Git submodules can be updated using the `git` command. Simply execute the following command and the latest version of the theme will be downloaded into your local repository: