mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 07:51:53 +02:00
Output HTML is better formatted.
This commit is contained in:
parent
7a7fa2bf24
commit
eda728ba1d
2 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@
|
||||||
{{- end }} prose flex max-w-full flex-col dark:prose-invert lg:flex-row">
|
{{- end }} prose flex max-w-full flex-col dark:prose-invert lg:flex-row">
|
||||||
{{ if $toc }}
|
{{ if $toc }}
|
||||||
<div class="order-first px-0 lg:order-last lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8">
|
<div class="order-first 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 lg:sticky {{ if hasPrefix .Site.Params.header.layout "fixed" }}
|
<div class="toc ltr:pl-5 rtl:pr-5 lg:sticky {{ if hasPrefix .Site.Params.header.layout "fixed" -}}
|
||||||
lg:top-[140px]{{ else }}lg:top-10{{ end }}">
|
lg:top-[140px]{{ else }}lg:top-10{{ end }}">
|
||||||
{{ partial "toc.html" . }}
|
{{ partial "toc.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
{{ if or (and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
|
{{ if or (and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
|
||||||
.TableOfContents "<ul")) (.Site.Params.article.showRelatedPosts | default false) }} <div
|
.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">
|
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 hasPrefix .Site.Params.header.layout "fixed" }}
|
<div class="toc ltr:pl-5 rtl:pr-5 print:hidden lg:sticky {{ if hasPrefix .Site.Params.header.layout "fixed" -}}
|
||||||
lg:top-[140px]{{ else }}lg:top-10{{ end }}">
|
lg:top-[140px]{{ else }}lg:top-10{{ end }}">
|
||||||
|
|
||||||
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
|
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
|
||||||
|
|
Loading…
Add table
Reference in a new issue