Skip to content
This repository has been archived by the owner on Jul 12, 2018. It is now read-only.

Commit

Permalink
added sidenav and changed subhead
Browse files Browse the repository at this point in the history
  • Loading branch information
V David Zvenyach committed Oct 10, 2015
1 parent 0ed44e8 commit 73c88fd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 0 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@
<!-- CSS
================================================== -->
<link rel="stylesheet" href="{{ "/assets/css/google-fonts.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "/assets-styleguide/css/prism.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "/assets/css/styleguide.css" | prepend: site.baseurl }}">
13 changes: 13 additions & 0 deletions _includes/sidenav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% assign current = page.url | downcase | split: '/' %}

<aside class="sidenav" id="menu-content">
<nav>
<ul class="usa-sidenav-list">
{% for recipe in site.data.recipes order:ascending%}
<li>
<a {% if current[2] == {{recipe.basename}}%}class="usa-current"{% endif %} href="{{site.baseurl}}/recipes/{{recipe.basename}}/">{{recipe.title}}</a>
</li>
{% endfor %}
</ul>
</nav>
</aside>
3 changes: 3 additions & 0 deletions _layouts/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@

<body>
{% include navbar.html %}
{% include sidenav.html %}
<section id="main" class="main-content" role="main">
<div class="styleguide-content">
{{ content }}
</div>
</section>

</body>
Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ layout: homepage
</nav>
<div class="usa-banner-content" id="main-content">
<h1>Digital Contracting Cookbook</h1>
<h2 class="usa-font-lead">Like Chef, but for Contracting...</h2>
<h2 class="usa-font-lead">Making Digital Service Acquisition Delectable</h2>
</div>
</div>
</section>
Expand Down

0 comments on commit 73c88fd

Please sign in to comment.