[gimp-web-devel/pat/bootstrap] layouts: fix the table of contents for single layout.



commit 7b7ca14687a571e7abdb3b03bf73aefbcfb1b8af
Author: Jehan <jehan girinstud io>
Date:   Wed Sep 21 12:27:06 2022 +0200

    layouts: fix the table of contents for single layout.
    
    We forgot to remove the borders from the single layout. Since these are
    now inside the toc layout, we had double borders for single pages.

 layouts/_default/single.html | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6471f6c..c167688 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -9,11 +9,9 @@
                </h1>
 
                {{ if gt .WordCount 400  }}
-                       {{ if or (not (isset .Params "toc")) (.Params.toc) }}
-                                       <div class='col border-bottom border-top pt-2 my-3'>
-                                               {{ partial "toc.html" . }}
-                                       </div>
-                                       {{ end }}
+                  {{ if or (not (isset .Params "toc")) (.Params.toc) }}
+                    {{ partial "toc.html" . }}
+                  {{ end }}
                {{ end }}
 
                {{ .Content }}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]