From 4154033aa8ac10a1e175ddd987c5ab16715d6129 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Thu, 2 Jan 2025 00:11:57 +0800 Subject: [PATCH] Update theme and hugo version --- .woodpecker/deploy.yml | 2 +- .woodpecker/myhugo.df | 3 ++- config.toml | 4 +++- themes/hugo-theme-flat | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml index 9181637..cf0c729 100644 --- a/.woodpecker/deploy.yml +++ b/.woodpecker/deploy.yml @@ -3,7 +3,7 @@ steps: when: - branch: main event: push - image: 'myhugo:0.3' + image: 'myhugo:0.4' environment: HTTP_USER: from_secret: HTTP_USER diff --git a/.woodpecker/myhugo.df b/.woodpecker/myhugo.df index 2f54c7d..5c5d926 100644 --- a/.woodpecker/myhugo.df +++ b/.woodpecker/myhugo.df @@ -2,7 +2,8 @@ FROM debian:bullseye-slim RUN apt update && \ apt install --yes curl ca-certificates && \ - curl --location --output hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.111.3/hugo_extended_0.111.3_linux-amd64.deb && \ + curl --location --output hugo.deb \ + https://github.com/gohugoio/hugo/releases/download/v0.140.2/hugo_extended_0.140.2_linux-amd64.deb && \ apt install --yes ./hugo.deb && \ rm ./hugo.deb && \ apt clean && \ diff --git a/config.toml b/config.toml index ff2bee4..9d7335c 100644 --- a/config.toml +++ b/config.toml @@ -2,9 +2,11 @@ title = "Leafee98's Blog" theme = "hugo-theme-flat" enableRobotsTXT = true hasCJKLanguage = true -paginate = 6 baseURL = "https://blog.leafee98.com/" +[pagination] +pagerSize = 6 + # these values are hugo built in markup config [markup.highlight] anchorLineNos = false diff --git a/themes/hugo-theme-flat b/themes/hugo-theme-flat index acba79e..fc226c6 160000 --- a/themes/hugo-theme-flat +++ b/themes/hugo-theme-flat @@ -1 +1 @@ -Subproject commit acba79eebca8557fd01ac365d9a947959218b346 +Subproject commit fc226c618910070206d0d4f28d5ac2cd5766c2e3