From 62095aa378de2219012f0289a2b8a1bcb095bdd0 Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 3 Oct 2020 16:40:36 +0200 Subject: [PATCH] add: Dockerfile + update baseUrl * also enhance footer partial that cries when a ref goes missing (such as when a branch is merged) --- Dockerfile | 15 +++++++++++++++ config.toml | 2 +- layouts/partials/footer.html | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e874692 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM immawanderer/fedora-hugo:latest +RUN mkdir -pv /homepage +COPY . /homepage + +WORKDIR /homepage + +RUN git submodule init \ +&& git submodule update --recursive \ +&& hugo version +RUN hugo --minify --gc=true + +WORKDIR / + +FROM nginx +COPY --from=0 /homepage/public/ /usr/share/nginx/html diff --git a/config.toml b/config.toml index 63c29be..5e15c1d 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseurl = "https://dotya.ml" +baseurl = "/" languageCode = "en-us" defaultContentLanguage = "en" theme = "hermit" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e3a1474..90069af 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,3 @@