Skip to content

Commit 6749f41

Browse files
committed
Fix top padding for nav; removed is_homepage check, only highlight "Stack" for home page.
1 parent 94501f9 commit 6749f41

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

source/_views/default.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<body>
1818
<div class="mainContent container stack-nav">
1919
<ul class="nav nav-pills">
20-
<li {% if page.nav_name == "" %} class="active" {% endif %}>
20+
<li {% if page.nav_name == "home" %} class="active" {% endif %}>
2121
<a href="{{ site.url }}/">Stack</a>
2222
</li>
2323
<li {% if page.nav_name == "toolbox" %} class="active" {% endif %}>
@@ -38,8 +38,8 @@
3838
</div>
3939
</div>
4040

41-
{% if page.is_homepage %}
42-
<div class="jumbotron masthead {% if page.is_homepage %}huge{% endif %}">
41+
{% if page.nav_name == "home" %}
42+
<div class="jumbotron masthead {% if page.nav_name == "home" %}huge{% endif %}">
4343
<h1><a href="{{ site.url }}/">Stack</a></h1>
4444
<p class="tagline">Composing <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/HttpKernelInterface.php">HttpKernelInterface</a> middlewares since 2013!</p>
4545
<p>

source/css/style.css

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,3 @@ ol.conventions .no {
209209
margin-top: 2em;
210210
}
211211
}
212-
213-
@media (min-width: 980px) {
214-
body {
215-
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
216-
padding-bottom: 40px;
217-
}
218-
219-
/*
220-
.navbar a.brand {
221-
background-position-x: 1em;
222-
}
223-
*/
224-
}

source/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
is_homepage: true
3+
nav_name: home
44
---
55
{% block full_title %}{{ site.title }} &mdash; {{ site.subtitle }}{% endblock %}
66
{% block content %}

0 commit comments

Comments
 (0)