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

fix chapter and post toc

parent 7e110a57
No related branches found
No related tags found
No related merge requests found
......@@ -35,18 +35,19 @@
@include in-page-with-sidebar
figure
max-width: col(6, 8)
figcaption
padding: 0 col(1, 6)
&.image-portrait
max-width: col(4, 8)
figcaption
padding: 0 col(1, 4)
&--alt_background, &--accent_background
background: none
.chapter .text
padding: $grid-gutter col(1, 8)
figure
margin-bottom: 0
figcaption
padding: 0 col(1, 6)
&.image-portrait
figcaption
padding: 0 col(1, 4)
&--alt_background
.chapter
background: $block-chapter-layout-alt-background
......
......@@ -111,7 +111,6 @@
.toc-container
// in full width page or under md breakpoint (mobile)
@include in-page-without-sidebar
@include offcanvas-toc
@include media-breakpoint-down(desktop)
......
......@@ -8,6 +8,10 @@
{{- $bodyclass = printf "full-width %s" $bodyclass -}}
{{- end -}}
{{- if and (eq .Kind "page") (eq .Type "posts") -}}
{{- $bodyclass = printf "offcanvas-toc %s" $bodyclass -}}
{{- end -}}
{{- if .Params.diplomas -}}
{{- $bodyclass = printf "offcanvas-toc %s" $bodyclass -}}
{{- end -}}
......
......@@ -2,6 +2,14 @@
{{ partial "posts/hero-single.html" . }}
<div class="document-content" itemscope itemtype="https://schema.org/NewsArticle">
{{ partial "toc/container.html"
(dict
"toc" "toc/default.html"
"context" .
)
}}
<meta itemprop="headline" content="{{ partial "PrepareHTML" .Title }}">
<meta itemprop="url" content="{{ .Permalink }}">
{{ if .Date }}<meta itemprop="datePublished" content="{{ .Date.Format "2006-01-02T15:04" }}">{{ end }}
......@@ -10,6 +18,7 @@
{{ partial "posts/aside.html" . }}
{{ partial "posts/chapo.html" (dict
"context" .
"block_wrapped" true
......
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