Hugo installation

This commit is contained in:
Daniel_I_Am 2022-06-11 13:15:28 +02:00
commit 84e9c0d6f9
6 changed files with 38 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.hugo_build.lock

6
archetypes/default.md Normal file
View File

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

3
config.toml Normal file
View File

@ -0,0 +1,3 @@
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"

View File

@ -0,0 +1,6 @@
---
title: "My First Post"
date: 2022-06-11T11:00:47Z
draft: true
---

13
docker-compose.yml Normal file
View 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
View 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