|
|
|
@ -73,7 +73,7 @@ please share it by [posting code or screenshots](https://github.com/willfaught/p
|
|
|
|
|
If you deploy a site,
|
|
|
|
|
please share it by [posting a link](https://github.com/willfaught/paige/discussions/12).
|
|
|
|
|
|
|
|
|
|
## Get started with Hugo
|
|
|
|
|
## Setup
|
|
|
|
|
|
|
|
|
|
1. [Install Hugo](https://gohugo.io/installation/) (the extended version is required).
|
|
|
|
|
|
|
|
|
@ -125,42 +125,35 @@ please share it by [posting a link](https://github.com/willfaught/paige/discussi
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ cd yourproject
|
|
|
|
|
$ hugo new my-post.md
|
|
|
|
|
$ hugo new yourpost.md
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
See [Hugo's quick start guide](https://gohugo.io/getting-started/quick-start/) for more information.
|
|
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
|
|
Install:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ cd yourproject
|
|
|
|
|
$ hugo mod init github.com/youraccount/yourproject
|
|
|
|
|
$ hugo mod get github.com/willfaught/paige
|
|
|
|
|
```
|
|
|
|
|
5. Install the Paige module:
|
|
|
|
|
|
|
|
|
|
Update:
|
|
|
|
|
```sh
|
|
|
|
|
$ cd yourproject
|
|
|
|
|
$ hugo mod init github.com/youraccount/yourproject
|
|
|
|
|
$ hugo mod get github.com/willfaught/paige
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ cd yourproject
|
|
|
|
|
$ hugo mod get -u
|
|
|
|
|
```
|
|
|
|
|
6. Import the Paige module:
|
|
|
|
|
|
|
|
|
|
Example `config.yaml`:
|
|
|
|
|
```sh
|
|
|
|
|
$ cd yourproject
|
|
|
|
|
$ cat >>config.toml <<EOF
|
|
|
|
|
[[module.imports]]
|
|
|
|
|
path = "github.com/willfaught/paige"
|
|
|
|
|
EOF
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
module:
|
|
|
|
|
imports:
|
|
|
|
|
- path: "github.com/willfaught/paige"
|
|
|
|
|
```
|
|
|
|
|
7. Build and run the site:
|
|
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
```sh
|
|
|
|
|
$ cd yourproject
|
|
|
|
|
$ hugo server -D
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ cd yourproject
|
|
|
|
|
$ hugo server -D
|
|
|
|
|
```
|
|
|
|
|
See [Hugo's quick start guide](https://gohugo.io/getting-started/quick-start/) for more information.
|
|
|
|
|
|
|
|
|
|
## Configure
|
|
|
|
|
|
|
|
|
|