mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-21 02:11:54 +02:00
Bug Fixes: Floating Position of TOC and Layout Setting for Article Header
The extra space makes the TOC floating position wrong lg:top-10, rather than lg:top-[140px] for the 'fixed' header layout
This commit is contained in:
parent
eceda27458
commit
1c0a989516
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@
|
|||
{{ if or (and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
|
||||
.TableOfContents "<ul")) (.Site.Params.article.showRelatedPosts | default false) }} <div
|
||||
class="order-first sm:max-w-prose lg:ml-auto px-0 lg:order-last lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8">
|
||||
<div class="toc ltr:pl-5 rtl:pr-5 print:hidden lg:sticky {{ if eq .Site.Params.header.layout " fixed" }}
|
||||
<div class="toc ltr:pl-5 rtl:pr-5 print:hidden lg:sticky {{ if eq .Site.Params.header.layout "fixed" }}
|
||||
lg:top-[140px] {{ else }} lg:top-10 {{ end }}">
|
||||
|
||||
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
|
||||
|
@ -108,4 +108,4 @@
|
|||
{{ end }}
|
||||
</footer>
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue