mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
feat(bootstrap): add compatibility for Hugo v0.123
This commit is contained in:
parent
ff085a9fde
commit
623ca31a5f
4 changed files with 4 additions and 4 deletions
|
@ -1,3 +1,3 @@
|
|||
# Hugo Blox Builder
|
||||
|
||||
version = "5.9.6"
|
||||
version = "5.9.7"
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue