From c24f2bc8c0a5362ad6ba4dd3b1f01aa223ba4026 Mon Sep 17 00:00:00 2001 From: "Nowshed H. Imran" Date: Sat, 22 Jan 2022 00:34:09 +0600 Subject: [PATCH] Added Hugo module method in installation (#701) --- .../posts/papermod/papermod-installation.md | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/content/posts/papermod/papermod-installation.md b/content/posts/papermod/papermod-installation.md index 9e821fd6..cf2e13fd 100644 --- a/content/posts/papermod/papermod-installation.md +++ b/content/posts/papermod/papermod-installation.md @@ -47,7 +47,7 @@ git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth ### Method 2 -you can use as [submodule](https://www.atlassian.com/git/tutorials/git-submodule) with +You can use as [submodule](https://www.atlassian.com/git/tutorials/git-submodule) with ```bash git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod --depth=1 @@ -82,6 +82,28 @@ Add in `config.yml`: ```yml theme: "PaperMod" ``` +### Method 4 + + - Install [Go programming language](https://go.dev/doc/install) in your operating system. + + - Intialize your own hugo mod + +``` +hugo mod init YOUR_OWN_GIT_REPOSITORY +``` + + - Add PaperMod in your `config.yml` file + +``` +module: + imports: + - path: github.com/adityatelange/hugo-PaperMod +``` + - Update theme + +``` +hugo mod get -u +``` ---