Hugo installation
This commit is contained in:
commit
84e9c0d6f9
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.hugo_build.lock
|
||||||
6
archetypes/default.md
Normal file
6
archetypes/default.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
3
config.toml
Normal file
3
config.toml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
baseURL = "http://example.org/"
|
||||||
|
languageCode = "en-us"
|
||||||
|
title = "My New Hugo Site"
|
||||||
6
content/posts/my-first-post.md
Normal file
6
content/posts/my-first-post.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "My First Post"
|
||||||
|
date: 2022-06-11T11:00:47Z
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
hugo:
|
||||||
|
image: personal-site-hugo:dev
|
||||||
|
build:
|
||||||
|
context: ./docker/hugo
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:8080:8080
|
||||||
|
volumes:
|
||||||
|
- ./:/code
|
||||||
|
working_dir: /code
|
||||||
|
tty: true
|
||||||
9
docker/hugo/Dockerfile
Normal file
9
docker/hugo/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM alpine:3.16
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
WORKDIR /code
|
||||||
|
|
||||||
|
CMD ["hugo", "server", "-D", "--bind", "0.0.0.0", "-p", "8080"]
|
||||||
|
|
||||||
|
RUN apk add --no-cache hugo
|
||||||
Loading…
Reference in New Issue
Block a user