-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from kool-dev/hugo
Hugo + update kool create
- Loading branch information
Showing
18 changed files
with
184 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
### Using Hugo preset | ||
|
||
#### Creating a new Hugo website | ||
|
||
To make things easier we will use **kool** to install it for you. | ||
|
||
```console | ||
$ kool create hugo my-website | ||
|
||
$ cd my-website | ||
``` | ||
- **kool create** already executes **kool preset** internally so you can skip the command in the next step. | ||
|
||
#### Adding kool to an existing Hugo website | ||
|
||
Go to the project folder and run: | ||
|
||
```console | ||
$ cd my-website/ | ||
$ kool preset hugo | ||
``` | ||
|
||
**kool preset** will create a few configuration files in order to enable you to configure / extend it. You don't need to execute it if you created the project with `kool create`. | ||
|
||
### Using kool for Hugo development | ||
|
||
- To start the container to serve your Hugo website: | ||
|
||
```console | ||
$ kool start | ||
``` | ||
|
||
Then check out your site at `http://localhost`. If you wanna stop the container just run `kool stop`. | ||
|
||
- To create some new content: | ||
|
||
```console | ||
$ kool run hugo new posts/my-super-post.md | ||
``` | ||
|
||
--- | ||
|
||
Check your **kool.yml** to see what scripts you can run and add more. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
language: javascript | ||
commands: | ||
create: | ||
- kool docker kooldev/node:14-adonis adonis new | ||
- kool docker kooldev/node:14-adonis adonis new $CREATE_DIRECTORY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: "3.8" | ||
services: | ||
app: | ||
image: klakegg/hugo | ||
command: ["server", "-p", "80", "-D"] | ||
working_dir: /app | ||
ports: | ||
- "${KOOL_APP_PORT:-80}:80" | ||
volumes: | ||
- .:/app:delegated | ||
networks: | ||
- kool_local | ||
- kool_global | ||
static: | ||
image: kooldev/nginx:static | ||
volumes: | ||
- .:/app:delegated | ||
networks: | ||
- kool_local | ||
- kool_global | ||
networks: | ||
kool_local: | ||
kool_global: | ||
external: true | ||
name: "${KOOL_GLOBAL_NETWORK:-kool_global}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
scripts: | ||
hugo: kool docker -p 1313:1313 klakegg/hugo | ||
dev: kool run hugo server -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
language: static | ||
commands: | ||
create: | ||
- kool docker klakegg/hugo new site $CREATE_DIRECTORY | ||
# questions: | ||
# compose: | ||
# - key: app | ||
# template: hugo.yml | ||
# - key: comments | ||
# default_answer: none | ||
# message: What comments service do you want to use | ||
# options: | ||
# - name: Commento | ||
# template: commento.yml | ||
# - name: none | ||
# template: none | ||
# templates: | ||
# - key: scripts | ||
# template: hugo.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: javascript | ||
commands: | ||
create: | ||
- kool docker kooldev/node:14-nest nest new | ||
- kool docker kooldev/node:14-nest nest new $CREATE_DIRECTORY | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: javascript | ||
commands: | ||
create: | ||
- kool docker kooldev/node:14 yarn create next-app | ||
- kool docker kooldev/node:14 yarn create next-app $CREATE_DIRECTORY | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: javascript | ||
commands: | ||
create: | ||
- kool docker kooldev/node:14 yarn create next-app | ||
- kool docker kooldev/node:14 yarn create next-app $CREATE_DIRECTORY | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: javascript | ||
commands: | ||
create: | ||
- kool docker kooldev/node:14 yarn create nuxt-app | ||
- kool docker kooldev/node:14 yarn create nuxt-app $CREATE_DIRECTORY | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: javascript | ||
commands: | ||
create: | ||
- kool docker kooldev/node:14 yarn create nuxt-app | ||
- kool docker kooldev/node:14 yarn create nuxt-app $CREATE_DIRECTORY | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters