Skip to content
Myr

Rename header template to navbar

Before adoption: this commit came in with the history the project adopted, so no landing records it.

To avoid the confusing similarity between _head and _header.

authored by David Tolnay · committed by David Tolnay · parent 161a6fa · Browse files · 5 files+30 added−30 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+30 added−30 removed

  • other:+30 added−30 removed

5 files+30 added−30 removed

deleted:docs/templates/shared/_header.liquid-27 removed
1 <div class="navbar navbar-default navbar-fixed-top" role="navigation">2 <div class="container">3 <div class="navbar-header">4 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse">5 <span class="sr-only">Toggle navigation</span>6 <span class="icon-bar"></span>7 <span class="icon-bar"></span>8 <span class="icon-bar"></span>9 </button>10 <a class="navbar-brand" href="{{root}}/">jq</a>11 </div>1213 <div class="navbar-collapse collapse" id="nav-collapse">14 <ul class="nav navbar-nav">15 {% for item in navigation %}16 <li {% if item.permalink == permalink %} class="active" {% endif %}>17 <a href="{{root}}{{item.permalink}}">{{item.name}}</a>18 </li>19 {% endfor %}20 <li><a href="https://github.com/stedolan/jq/issues">Issues</a></li>21 <li><a href="https://github.com/stedolan/jq">Source</a></li>22 <li><a href="https://jqplay.org">Try online!</a></li>23 <li><a href="https://raw.githubusercontent.com/stedolan/jq/master/NEWS">News</a></li>24 </ul>25 </div>26 </div>27 </div>
added:docs/templates/shared/_navbar.liquid+27 added
1 <div class="navbar navbar-default navbar-fixed-top" role="navigation">2 <div class="container">3 <div class="navbar-header">4 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse">5 <span class="sr-only">Toggle navigation</span>6 <span class="icon-bar"></span>7 <span class="icon-bar"></span>8 <span class="icon-bar"></span>9 </button>10 <a class="navbar-brand" href="{{root}}/">jq</a>11 </div>1213 <div class="navbar-collapse collapse" id="nav-collapse">14 <ul class="nav navbar-nav">15 {% for item in navigation %}16 <li {% if item.permalink == permalink %} class="active" {% endif %}>17 <a href="{{root}}{{item.permalink}}">{{item.name}}</a>18 </li>19 {% endfor %}20 <li><a href="https://github.com/stedolan/jq/issues">Issues</a></li>21 <li><a href="https://github.com/stedolan/jq">Source</a></li>22 <li><a href="https://jqplay.org">Try online!</a></li>23 <li><a href="https://raw.githubusercontent.com/stedolan/jq/master/NEWS">News</a></li>24 </ul>25 </div>26 </div>27 </div>
modified:docs/templates/default.liquid+1 added-1 removed
1 unmodified line
2<html lang="en">3{% include "shared/head" %}45 <body id="{{slug}}">6{% include "shared/header" %}6{% include "shared/navbar" %}78 <div class="container">9 <div class="row">10 <h1>{{headline}}</h1>
24 unmodified lines
modified:docs/templates/index.liquid+1 added-1 removed
1 unmodified line
2<html lang="en">3{% include "shared/head" %}45 <body id="{{slug}}">6{% include "shared/header" %}6{% include "shared/navbar" %}78 <div class="container">9 <div class="row">10 <div class="jumbotron">
67 unmodified lines
modified:docs/templates/manual.liquid+1 added-1 removed
1 unmodified line
2<html lang="en">3{% include "shared/head" %}45 <body id="{{slug}}" data-spy="scroll" data-target="#navcolumn" data-offset="100">6{% include "shared/header" %}6{% include "shared/navbar" %}78 <div class="container">9 <div class="row">10 <div class="affix" id="navcolumn">
89 unmodified lines