diff options
author | William Langford <wlangfor@gmail.com> | 2020-03-02 10:55:51 -0500 |
---|---|---|
committer | William Langford <wlangfor@gmail.com> | 2020-03-02 10:55:51 -0500 |
commit | 8c61ebad0aaee3f5293c5e5077c0aeb0e8c232ec (patch) | |
tree | d62b837c206adb8f985e339173648ebd6491a2e8 /docs/templates | |
parent | d24c3d22638da7c2b166397a2765f5309c78d3de (diff) |
Minor fixes to website generation
Diffstat (limited to 'docs/templates')
-rw-r--r-- | docs/templates/shared/_head.html.j2 | 2 | ||||
-rw-r--r-- | docs/templates/shared/_navbar.html.j2 | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/templates/shared/_head.html.j2 b/docs/templates/shared/_head.html.j2 index b6fafd35..f7242627 100644 --- a/docs/templates/shared/_head.html.j2 +++ b/docs/templates/shared/_head.html.j2 @@ -7,7 +7,7 @@ <title>{{headline}}</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <link rel="canonical" href="{{ url }}{{ permalink | replace('/index','') }}" /> + <link rel="canonical" href="{{ url }}/{{ permalink }}" /> <link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/spacelab/bootstrap.min.css" rel="stylesheet" integrity="sha256-j7Dtnd7ZjexEiPNbscbopFn9+Cs0b3TLipKsWAPHZIM= sha512-RFhfi6P8zWMAJrEGU+CPjuxPh3r/UUBGqQ+/o6WKPIVZmQqeOipGotH2ihRULuQ8wsMBoK15TSZqc/7VYWyuIw==" crossorigin="anonymous"> <link rel="stylesheet" href="{{ root }}/css/base.css" type="text/css"> <!--[if lt IE 9]> diff --git a/docs/templates/shared/_navbar.html.j2 b/docs/templates/shared/_navbar.html.j2 index 3fa5f14c..be1eb377 100644 --- a/docs/templates/shared/_navbar.html.j2 +++ b/docs/templates/shared/_navbar.html.j2 @@ -13,8 +13,8 @@ <div class="navbar-collapse collapse" id="nav-collapse"> <ul class="nav navbar-nav"> {% for item in navigation %} - <li {% if item == permalink %} class="active" {% endif %}> - <a href="{{root}}/{{item}}">{{item | capitalize}}</a> + <li {% if item == navitem %} class="active" {% endif %}> + <a href="{{root}}/{{item}}/">{{item | capitalize}}</a> </li> {% endfor %} <li><a href="https://github.com/stedolan/jq/issues">Issues</a></li> |