feat(bootstrap): add compatibility for Hugo v0.123

This commit is contained in:
George Cushen committed 2024-02-24 17:00:54 +00:00
1 parent ff085a9fde
commit 623ca31a5f
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.122.0'
hugo-version: '0.123.3'
extended: true
- name: Build
+1 -1
View File
@@ -1,3 +1,3 @@
# Hugo Blox Builder
version = "5.9.6"
version = "5.9.7"
+1 -1
View File
@@ -24,7 +24,7 @@ sitemap:
changefreq: weekly
module:
hugoVersion:
min: '0.119.0'
min: '0.123.3'
extended: true
imports:
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-core
@@ -8,7 +8,7 @@
{{ $show_navbar := ((site.Params.header.navbar.enable | default true) | and (ne .Params.header.navbar.enable false)) | or .Params.header.navbar.enable }}
{{- $highlight_active_link := site.Params.header.navbar.highlight_active_link | default true -}}
<body id="top" data-spy="scroll" {{ if $show_navbar }}data-offset="70"{{end}} data-target="{{ if or .IsHome (eq .Type "widget_page") | and $highlight_active_link }}#navbar-main{{else}}#TableOfContents{{end}}" class="page-wrapper {{with .Params.design.css_class}}{{.}}{{end}} {{ if not (.Scratch.Get "light") }}dark{{end}} {{ if not $show_navbar }}no-navbar{{end}}" {{with .File}}data-wc-page-id="{{.File.UniqueID}}"{{end}} {{with .Params.design.css_style}}style="{{. | safeCSS}}"{{end}}>
<body id="top" data-spy="scroll" {{ if $show_navbar }}data-offset="70"{{end}} data-target="{{ if or .IsHome (eq .Type "widget_page") | and $highlight_active_link }}#navbar-main{{else}}#TableOfContents{{end}}" class="page-wrapper {{with .Params.design.css_class}}{{.}}{{end}} {{ if not (.Scratch.Get "light") }}dark{{end}} {{ if not $show_navbar }}no-navbar{{end}}" {{with .File}}data-wc-page-id="{{.UniqueID}}"{{end}} {{with .Params.design.css_style}}style="{{. | safeCSS}}"{{end}}>
{{/* Initialise Hugo Blox. */}}
{{ $js_license := printf "/*! Hugo Blox Builder v%s | https://hugoblox.com/ */\n" site.Data.hugoblox.version }}