_layouts/default.html in elixir-toolkit-theme-2.2.2 vs _layouts/default.html in elixir-toolkit-theme-2.3.0
- old
+ new
@@ -1,18 +1,20 @@
<!doctype html>
<html lang="en">
{% include head.html %}
-<body class="d-flex flex-column min-vh-100" data-bs-spy="scroll" data-bs-target="#toc-contents" data-bs-smooth-scroll="true" tabindex="0">
+<body class="d-flex flex-column min-vh-100"{% unless page.toc == false %} data-bs-spy="scroll" data-bs-target="#toc-contents" data-bs-smooth-scroll="true" tabindex="0"{% endunless %}>
{% if jekyll.environment == "development" %}{% include dev-info.html %}{% endif %}
{% include topnav.html %}
<!-- Page Content -->
<div class="container flex-grow-1">
<!-- Content Row -->
- <div id="layout" class="gap-5">
+ <div {% unless page.sidebar == nil or page.sidebar == false %}id="layout" class="gap-5"{% endunless %}>
<!-- Sidebar -->
+ {%- unless page.sidebar == nil or page.sidebar == false %}
<aside id="sidebar">
{% include sidebar.html %}
</aside>
+ {% endunless %}
<!-- Content -->
{{content}}
</div>
</div>
{%- if site.theme_variables.back_to_top or site.theme_variables.back_to_top == nil %}