Merge pull request #2412 from nunocoracao/patch

fix bug in toc for articles
This commit is contained in:
Nuno C.
2025-08-09 01:42:24 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@
{{/* Body */}}
<section class="flex flex-col max-w-full mt-0 prose dark:prose-invert lg:flex-row">
{{ $enableToc := .Params.showTableOfContents | default (site.Params.list.showTableOfContents | default false) }}
{{ $enableToc := site.Params.article.showTableOfContents | default (site.Params.list.showTableOfContents | default false) }}
{{ $showToc := and $enableToc (in .TableOfContents "<ul") }}
{{ $showRelated := site.Params.article.showRelatedPosts | default false }}
{{ $topClass := cond (hasPrefix site.Params.header.layout "fixed") "lg:top-[140px]" "lg:top-10" }}

View File

@@ -1,6 +1,6 @@
{
"name": "hugo-blowfish-theme",
"version": "2.89.0",
"version": "2.89.1",
"description": "Blowfish theme for Hugo.",
"scripts": {
"postinstall": "vendor-copy",