Skip to content
Snippets Groups Projects
Commit b9c8a8b3 authored by alexisben's avatar alexisben
Browse files

post toc

parent 62937db6
No related merge requests found
......@@ -65,7 +65,7 @@
.block-pagination
order: 3
@include media-breakpoint-up(desktop)
aside
.post-sidebar
@include container-margin-left
margin-top: 0
top: 0
......@@ -73,8 +73,13 @@
height: 100%
position: absolute
width: col-outside-container(4)
.post-infos
> div
@include sticky($spacing1)
.toc-container
border-top: 1px solid $color-border
padding-top: $spacing1
position: static
margin-left: 0
// Safe spacing if post is empty
.document-content
min-height: 350px
......
<aside>
{{- partial "posts/post-infos.html" . -}}
</aside>
<div class="post-sidebar">
<div>
<aside>
{{- partial "posts/post-infos.html" . -}}
</aside>
{{ partial "toc/container.html"
(dict
"toc" "toc/default.html"
"context" .
)
}}
</div>
</div>
......@@ -8,7 +8,7 @@
{{ if .Params.description_short }}<meta itemprop="abstract" content="{{ partial "PrepareHTML" .Params.description_short }}">{{ end }}
{{ if .Summary }}<meta itemprop="description" content="{{ partial "PrepareHTML" .Summary }}">{{ end }}
{{ partial "posts/aside.html" . }}
{{ partial "posts/sidebar.html" . }}
{{ partial "posts/chapo.html" (dict
"context" .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment