From 59526558a93aa37a082000e25621ecbbd6750fd7 Mon Sep 17 00:00:00 2001 From: Raphael Bitton Date: Thu, 9 Oct 2025 18:16:51 -0500 Subject: [PATCH] bootstrap --- .gitignore | 1 + .gitmodules | 3 +++ Dockerfile | 14 ++++++++++++++ docker-compose.yml | 14 ++++++++++++++ src/config.toml | 19 +++++++++++++++++++ src/content/_index.md | 4 ++++ src/themes/terminus | 1 + 7 files changed, 56 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100644 src/config.toml create mode 100644 src/content/_index.md create mode 160000 src/themes/terminus diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..42e42be --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +src/public/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1304f92 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/themes/terminus"] + path = src/themes/terminus + url = https://github.com/ebkalderon/terminus.git diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..484e314 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine:3.20 AS builder + +RUN echo "@community https://dl-cdn.alpinelinux.org/alpine/v3.20/community" \ + >> /etc/apk/repositories && \ + apk add --no-cache zola + +WORKDIR /site +COPY src/ . +RUN zola build --force + +FROM nginx:alpine +COPY --from=builder /site/public /usr/share/nginx/html +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..78e55a7 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,14 @@ +name: zola + +services: + zola: + container_name: zola + build: . + ports: + - "1313:80" + networks: + - cloudflared-net + +networks: + cloudflared-net: + external: true diff --git a/src/config.toml b/src/config.toml new file mode 100644 index 0000000..ffa11e3 --- /dev/null +++ b/src/config.toml @@ -0,0 +1,19 @@ +# The URL the site will be built for +base_url = "http://100.100.200.0:1313" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = false + +theme = "terminus" +title = "Raphael Bitton" + +[markdown] +# Whether to do syntax highlighting +# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola +highlight_code = false + +[extra] +# Put all your custom variables here diff --git a/src/content/_index.md b/src/content/_index.md new file mode 100644 index 0000000..6b38d6e --- /dev/null +++ b/src/content/_index.md @@ -0,0 +1,4 @@ ++++ +title = "Home" +paginate_by = 5 ++++ diff --git a/src/themes/terminus b/src/themes/terminus new file mode 160000 index 0000000..b008df4 --- /dev/null +++ b/src/themes/terminus @@ -0,0 +1 @@ +Subproject commit b008df4445bda4111f462828df9b11e576957a25