diff --git a/Dockerfile b/Dockerfile index d609da8..d7ea9f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine AS build +FROM node:26-alpine AS build ARG GITHUB_USERNAME_TOKEN WORKDIR /build-website ADD https://github.com/gohugoio/hugo/releases/download/v0.162.1/hugo_0.162.1_Linux-64bit.tar.gz hugo.tar.gz diff --git a/config.toml b/config.toml index 109133c..0c36b34 100644 --- a/config.toml +++ b/config.toml @@ -26,6 +26,11 @@ baseUrl = "https://build.cfengine.com" [markup.highlight] noClasses = false +# Hugo 0.162+ blocks text/html content files by default +# so explicitly allow the content media types we use +[security] +allowContent = ['^text/(html|markdown|org)$'] + [params.gitProviders.repositoryLinkTemplates] "github.com" = "%s/tree/%s/%s" "gitlab.com" = "%s/-/tree/%s/%s"