Skip to content

Commit

Permalink
More layout
Browse files Browse the repository at this point in the history
  • Loading branch information
erogluorhan committed Feb 7, 2024
1 parent ef8ad6e commit 0167464
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions sphinx_pythia_theme/layout.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{%- extends "sphinx_book_theme/layout.html" %}

{%- block body_tag %}
<body data-spy="scroll" data-target="#bd-toc-nav" data-offset="132">
{# set up with scrollspy to update the toc as we scroll #}
super.super()
{%- endblock %}

{%- block content %}
<div class="container-fluid" id="shim"></div>
<div class="container-fluid" id="banner"></div>

{%- block docs_navbar %}
<nav class="navbar navbar-dark navbar-expand-lg bg-dark fixed-top bd-navbar shadow" id="navbar-main">
<nav class="bd-header navbar navbar-expand-lg bd-navbar navbar-dark bg-dark fixed-top shadow" id="navbar-main">
{%- include "sections/header.html" %}
</nav>
{%- endblock %}
Expand All @@ -21,9 +22,14 @@
{%- endif %}
<div class="row">
{%- block docs_toc %}
{{ super() }}
{%- if sidebars %}
{{ super.super() }}
{%- else %}
<div class="d-none col-12 col-md-1 col-xl-2 bd-sidebar no-sidebar"></div>
{%- endif %}
{%- endblock %}

{# Main content area #}
{%- block docs_main %}
{%- if theme_page_layouts and pagename in theme_page_layouts %}
{%- include theme_page_layouts[pagename] %}
Expand Down

0 comments on commit 0167464

Please sign in to comment.