Skip to content

Commit

Permalink
Add more into layout
Browse files Browse the repository at this point in the history
  • Loading branch information
erogluorhan committed Feb 6, 2024
1 parent b6c362c commit 272511d
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions sphinx_pythia_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,60 @@
{%- 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">
{%- include "sections/header.html" %}
</nav>
{%- endblock %}

{%- if theme_page_layouts and pagename in theme_page_layouts %}
<div class="container-fluid">
{%- else %}
<div class="container-xl">
{%- endif %}
<div class="row">
{%- block docs_sidebar %}
{%- if sidebars %}
{{ super() }}
{%- else %}
<div class="d-none col-12 col-md-1 col-xl-2 bd-sidebar no-sidebar"></div>
{%- endif %}
{%- endblock %}

{%- block docs_toc %}
{{ super() }}
{%- endblock %}

{%- block docs_main %}
{%- if theme_page_layouts and pagename in theme_page_layouts %}
{%- include theme_page_layouts[pagename] %}
{%- else %}
<main class="col py-md-3 pl-md-4 bd-content overflow-auto" role="main">
{%- block docs_body %}
{%- if sidebars %}
{%- include "topbar.html" %}
{%- endif %}
<div id="main-content" class="row">
<div class="col-12 col-md-9 pl-md-3 pr-md-0">
{{ super.super() }}
{%- if theme_show_prev_next %}
{%- include "_templates/prev-next.html" %}
{%- endif %}
</div>
</div>
{%- endblock %}
</main>
{%- endif %}
{%- endblock %}

</div>
</div>

{%- block scripts_end %}
{{ _webpack.body_post() }}
{%- endblock %}

{{ super() }}
{%- endblock %}

Expand Down

0 comments on commit 272511d

Please sign in to comment.