Update
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Valentin Brandl 2024-07-14 16:26:38 +02:00
parent 7760fba524
commit c001ba0c86
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9
5 changed files with 16 additions and 10 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "themes/after-dark"]
path = themes/after-dark
url = https://git.habd.as/comfusion/after-dark.git

6
Caddyfile Normal file
View File

@ -0,0 +1,6 @@
:80
root * /data
file_server {
precompressed gzip
}

View File

@ -1,4 +1,5 @@
FROM klakegg/hugo:0.56.3-alpine as build
FROM klakegg/hugo:alpine as build
# FROM klakegg/hugo:0.56.3-alpine as build
WORKDIR /usr/src/build
COPY ./ ./
RUN apk --no-cache add --update make
@ -20,8 +21,10 @@ RUN hugo && \
# Stage: Run
FROM nginx:alpine
RUN rm /usr/share/nginx/html/*
COPY --from=build /usr/src/build/public /usr/share/nginx/html/
COPY ./.well-known/ /usr/share/nginx/html/.well-known
FROM caddy
# FROM nginx:alpine
# RUN rm /usr/share/nginx/html/*
COPY Caddyfile /etc/caddy/Caddyfile
COPY ./.well-known/ /data/.well-known
COPY --from=build /usr/src/build/public /data
EXPOSE 80

View File

@ -14,7 +14,7 @@
{{ range .Pages }}
<li>
<span>{{ .Date.Format "02 Jan" }}</span>
<a href="{{ .Permalink }}" id="{{ .UniqueID }}" alt="{{ .Title }}">{{ .Title | markdownify }}</a>
<a href="{{ .Permalink }}" id="{{ .File.UniqueID }}" alt="{{ .Title }}">{{ .Title | markdownify }}</a>
</li>
{{ end }}
</ul>

@ -1 +1 @@
Subproject commit 93f4deab3ab201856577ed2cc95cd6eb98e42ba2
Subproject commit d20464c5c8ee00297f46ab729bfca4a12aaf4ba3