mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +01:00
Added Hugo module method in installation (#701)
This commit is contained in:
parent
dbef6a2f63
commit
c24f2bc8c0
@ -47,7 +47,7 @@ git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth
|
|||||||
|
|
||||||
### Method 2
|
### 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
|
```bash
|
||||||
git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod --depth=1
|
git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod --depth=1
|
||||||
@ -82,6 +82,28 @@ Add in `config.yml`:
|
|||||||
```yml
|
```yml
|
||||||
theme: "PaperMod"
|
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
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user