commit 84e9c0d6f93060ef518a35bbc6d6a6b7383bbda1 Author: Daniel-I-Am Date: Sat Jun 11 13:15:28 2022 +0200 Hugo installation diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2a8645f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.hugo_build.lock diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..e4b7418 --- /dev/null +++ b/config.toml @@ -0,0 +1,3 @@ +baseURL = "http://example.org/" +languageCode = "en-us" +title = "My New Hugo Site" diff --git a/content/posts/my-first-post.md b/content/posts/my-first-post.md new file mode 100644 index 0000000..a7210b0 --- /dev/null +++ b/content/posts/my-first-post.md @@ -0,0 +1,6 @@ +--- +title: "My First Post" +date: 2022-06-11T11:00:47Z +draft: true +--- + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..fb4dcf4 --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/docker/hugo/Dockerfile b/docker/hugo/Dockerfile new file mode 100644 index 0000000..0575157 --- /dev/null +++ b/docker/hugo/Dockerfile @@ -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