mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
Merge pull request #2412 from nunocoracao/patch
fix bug in toc for articles
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
{{/* Body */}}
|
{{/* Body */}}
|
||||||
<section class="flex flex-col max-w-full mt-0 prose dark:prose-invert lg:flex-row">
|
<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") }}
|
{{ $showToc := and $enableToc (in .TableOfContents "<ul") }}
|
||||||
{{ $showRelated := site.Params.article.showRelatedPosts | default false }}
|
{{ $showRelated := site.Params.article.showRelatedPosts | default false }}
|
||||||
{{ $topClass := cond (hasPrefix site.Params.header.layout "fixed") "lg:top-[140px]" "lg:top-10" }}
|
{{ $topClass := cond (hasPrefix site.Params.header.layout "fixed") "lg:top-[140px]" "lg:top-10" }}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hugo-blowfish-theme",
|
"name": "hugo-blowfish-theme",
|
||||||
"version": "2.89.0",
|
"version": "2.89.1",
|
||||||
"description": "Blowfish theme for Hugo.",
|
"description": "Blowfish theme for Hugo.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "vendor-copy",
|
"postinstall": "vendor-copy",
|
||||||
|
|||||||
Reference in New Issue
Block a user