Skip to content

Commit 512e5d2

Browse files
committed
Hide sidebar on the home page
1 parent 42366a8 commit 512e5d2

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

_theme/hero.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ <h1 class="main-title">Information you need to understand Bitcoin and start buil
66
{{ toctree(maxdepth=1, collapse=False, includehidden=False) }}
77
</div>
88
</div>
9-
</div>
9+
</div>

_theme/layout.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
{%- endblock %}
4343

4444
{%- macro sphinxsidebar() %}
45+
{% if pagename != 'index' %}
4546
{%- if render_sidebar %}
4647
<div class="sphinxsidebar d-none d-md-block">
4748
<div class="sphinxsidebarwrapper">
@@ -72,6 +73,7 @@
7273
</div>
7374
</div>
7475
{%- endif %}
76+
{% endif %}
7577
{%- endmacro %}
7678

7779
{% macro navBar() %}
@@ -91,7 +93,9 @@
9193

9294
{%- block header %}
9395
{{ navBar() }}
94-
{{ hero() }}
96+
{% if pagename == 'index' %}
97+
{{ hero() }}
98+
{% endif %}
9599
{%- endblock %}
96100

97101

_theme/static/css/main.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
body {
2+
margin-top: 54px;
3+
}
4+
15
.content-container {
26
max-width: 1170px;
37
width: 100%;
@@ -7,7 +11,6 @@
711

812
/* Hero */
913
.hero {
10-
margin-top: 54px;
1114
padding: 64px 0 60px;
1215
background: #13161F;
1316
}

0 commit comments

Comments
 (0)