Skip to content

Commit bf004ba

Browse files
author
Nowshed H. Imran
authored
Added Hugo module method in installation (adityatelange#701)
1 parent bb5e463 commit bf004ba

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

content/posts/papermod/papermod-installation.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth
4747
4848
### Method 2
4949
50-
you can use as [submodule](https://www.atlassian.com/git/tutorials/git-submodule) with
50+
You can use as [submodule](https://www.atlassian.com/git/tutorials/git-submodule) with
5151
5252
```bash
5353
git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod --depth=1
@@ -82,6 +82,28 @@ Add in `config.yml`:
8282
```yml
8383
theme: "PaperMod"
8484
```
85+
### Method 4
86+
87+
- Install [Go programming language](https://go.dev/doc/install) in your operating system.
88+
89+
- Intialize your own hugo mod
90+
91+
```
92+
hugo mod init YOUR_OWN_GIT_REPOSITORY
93+
```
94+
95+
- Add PaperMod in your `config.yml` file
96+
97+
```
98+
module:
99+
imports:
100+
- path: github.com/adityatelange/hugo-PaperMod
101+
```
102+
- Update theme
103+
104+
```
105+
hugo mod get -u
106+
```
85107

86108
---
87109

0 commit comments

Comments
 (0)