From 8727ffa33f13ec0abc91c11cc6cd0726786be7fa Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Mon, 16 Sep 2024 11:37:05 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Add=20Dockerfile=20and=20update?= =?UTF-8?q?=20config.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add Dockerfile to containerize the Hugo site - Update config.toml with new menu items and social links --- Dockerfile | 25 +++++++++++++++++++++++++ config.toml | 8 +++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f567080 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +# Use Alpine Linux as the base image +FROM alpine:3.19 + +# Install necessary packages including Hugo from edge repository and vim +RUN apk add --no-cache \ + git \ + curl \ + libc6-compat \ + vim && \ + apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community hugo + +# Set the working directory in the container +WORKDIR /src + +# Copy the Hugo project files into the container +COPY . . + +# Initialize and update submodules +RUN git submodule update --init --recursive + +# Expose the default Hugo port +EXPOSE 1313 + +# Command to run Hugo server +CMD ["hugo", "server", "--bind", "0.0.0.0"] \ No newline at end of file diff --git a/config.toml b/config.toml index 90cbd79..b589910 100644 --- a/config.toml +++ b/config.toml @@ -12,6 +12,8 @@ enableEmoji = true enableTwemoji = true enableGitInfo = true +[markup.highlight] +style = "github-dark" [params] # theme parameters author = "Eric X. Liu" @@ -40,17 +42,17 @@ enableGitInfo = true # Social links [[params.social]] name = "Git" - icon = "fa fa-git" + icon = "fa-brands fa-git fa-2x" weight = 1 url = "https://git.ericxliu.me/eric" [[params.social]] name = "linkedin" - icon = "fa fa-linkedin" + icon = "fa-brands fa-linkedin fa-2x" weight = 2 url = "https://www.linkedin.com/in/eric-x-liu-46648b93/" [[params.social]] name = "Personal email" - icon = "fa fa-envelope" + icon = "fa fa-envelope fa-2x" weight = 3 # Menu links