From a61744a86f874ae739682f04280b86e5eb04f37f Mon Sep 17 00:00:00 2001
From: Olivia206 <olivia.simonet@mmibordeaux.com>
Date: Tue, 25 Apr 2023 11:17:27 +0200
Subject: [PATCH] added blocks to posts toc

---
 layouts/partials/papers/toc.html | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/layouts/partials/papers/toc.html b/layouts/partials/papers/toc.html
index ccb05f40..33a92bce 100644
--- a/layouts/partials/papers/toc.html
+++ b/layouts/partials/papers/toc.html
@@ -2,6 +2,7 @@
 {{ $references := .context.Params.References }}
 {{ $researchers := .context.Params.researchers }}
 {{ $abstract := .context.Params.Abstract }}
+{{ $blocks := .context.Params.blocks}}
 
 <nav class="toc" id="nav-toc" aria-label="{{ i18n "commons.toc" }}">
     <ol>
@@ -17,6 +18,9 @@
       {{- if $references -}}
         <li><a href="#references">{{ i18n "papers.toc.references" }}</a></li>
       {{- end -}}
+      {{- if $blocks -}}
+        {{- partial "blocks/toc.html" $blocks -}}
+      {{- end -}}
     </ol>
   </nav>
   
\ No newline at end of file
-- 
GitLab