diff --git a/.github/workflows/hugo-version-update.yml b/.github/workflows/hugo-version-update.yml index 8efafd8e..687055f0 100644 --- a/.github/workflows/hugo-version-update.yml +++ b/.github/workflows/hugo-version-update.yml @@ -34,7 +34,13 @@ jobs: if: steps.git-check.outputs.modified == 'true' run: | cat release-versions/hugo-latest.txt | \ - while read version; do sed -i'' -E "s/(max = \")[0-9]+\.[0-9]+\.[0-9]+(\")/\1${version#v}\2/g" config.toml; done + while read version; do \ + v="${version#v}"; \ + minor="$(echo "$v" | cut -d. -f2)"; \ + min_minor="$((minor - 3))"; \ + sed -i'' -E "s/(max = \")[0-9]+\.[0-9]+\.[0-9]+(\")/\1${v}\2/g" config.toml; \ + sed -i'' -E "s/(min = \")[0-9]+\.[0-9]+\.[0-9]+(\")/\10.${min_minor}.0\2/g" config.toml; \ + done - name: Create Pull Request if: steps.git-check.outputs.modified == 'true' diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 15bc0a17..85d628e4 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -30,7 +30,7 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.102.3 + HUGO_VERSION: 0.165.0 steps: - name: Install Hugo CLI run: | diff --git a/config.toml b/config.toml index 81a5e860..56e98589 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ [module] [module.hugoVersion] extended = true -min = "0.158.0" +min = "0.162.0" max = "0.165.0" \ No newline at end of file diff --git a/config/_default/params.toml b/config/_default/params.toml index 0b5f992d..2dfa384b 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -26,6 +26,7 @@ disableTextInHeader = false # backgroundImageWidth = 1200 # defaultBackgroundImage = "IMAGE.jpg" # used as default for background images +# backgroundCanvas = false # render defaultBackgroundImage as a fixed backdrop on every page # defaultFeaturedImage = "IMAGE.jpg" # used as default for featured images in all articles # defaultSocialImage = "/android-chrome-512x512.png" # used as default for social media sharing (Open Graph and Twitter) hotlinkFeatureImage = false @@ -53,7 +54,8 @@ forgejoDefaultServer = "https://v11.next.forgejo.org" # metaDescriptionOrder = ["summary", "description", "site"] # Controls the fallback order for the HTML meta description. Valid values are "summary", "description", and "site". [header] - layout = "basic" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur + layout = "basic" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur, floating + # mobileMenuStyle = "fullscreen" # valid options: fullscreen, dropdown [footer] showMenu = true @@ -63,7 +65,8 @@ forgejoDefaultServer = "https://v11.next.forgejo.org" showScrollToTop = true [homepage] - layout = "profile" # valid options: page, profile, hero, card, background, custom + layout = "profile" # valid options: page, profile, hero, card, background, landing, custom + # layoutSwitcher = false # opt-in interactive preview of the built-in layouts #homepageImage = "IMAGE.jpg" # used in: hero, and card showRecent = false showRecentItems = 5 @@ -112,6 +115,7 @@ forgejoDefaultServer = "https://v11.next.forgejo.org" [list] showHero = false + # featureImageHover = false # subtle zoom on card thumbnails on hover # heroStyle = "background" # valid options: basic, big, background, thumbAndBackground layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground layoutBackgroundHeaderSpace = true # only used when heroStyle equals background diff --git a/go.mod b/go.mod index aaaaa184..f36e67d6 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/nunocoracao/blowfish/v2 +module github.com/nunocoracao/blowfish/v3 go 1.16 diff --git a/netlify.toml b/netlify.toml index 7a5d56be..c64f85d9 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,6 +3,6 @@ publish = "exampleSite/public" [build.environment] -HUGO_VERSION = "0.159.1" +HUGO_VERSION = "0.165.0" HUGO_THEMESDIR = "../.." HUGO_THEME = "repo" diff --git a/package-lock.json b/package-lock.json index 133303a5..de8385a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hugo-blowfish-theme", - "version": "2.106.0", + "version": "3.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hugo-blowfish-theme", - "version": "2.106.0", + "version": "3.0.0", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 46295028..6cb6b9e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.106.0", + "version": "3.0.0", "description": "Blowfish theme for Hugo.", "scripts": { "postinstall": "vendor-copy",