File tree Expand file tree Collapse file tree 7 files changed +382
-177
lines changed Expand file tree Collapse file tree 7 files changed +382
-177
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,12 @@ <h5 class="sidebar-title">Chapters Index</h5>
76
76
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
77
77
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
78
78
< li class ="chapter ">
79
- < div class ="sidebar-subtitle "> < strong > < a class ="chapter-title " href ="{{ url }} "> {{ chapter }}</ a > </ strong > </ div >
79
+ < div class ="sidebar-subtitle{% if page.url == indexurl %} page-active{% endif %} "> < strong > < a class ="chapter-title " href ="{{ url }} "> {{ chapter }}</ a > </ strong > </ div >
80
80
< ul class ="pseudo-list recipes-list ">
81
- {% for page in site.pages %}
82
- {% if page .url contains url %}
83
- {% unless page .url == indexurl %}
84
- < li class ="list-item recipe "> < a class ="recipe-title " href ="{{ page .url | replace: '.html', '' }} "> {{ page .title }}</ a > </ li >
81
+ {% for site_page in site.pages %}
82
+ {% if site_page .url contains url %}
83
+ {% unless site_page .url == indexurl %}
84
+ < li class ="list-item recipe{% if page.url == site_page.url %} page-active{% endif %} "> < a class ="recipe-title " href ="{{ site_page .url | replace: '.html', '' }} "> {{ site_page .title }}</ a > </ li >
85
85
{% endunless %}
86
86
{% endif %}
87
87
{% endfor %}
@@ -93,6 +93,8 @@ <h5 class="sidebar-title">Chapters Index</h5>
93
93
94
94
</ aside >
95
95
96
- </ body >
96
+ < script type ="text/javascript " src ="/js/scripts.js "> </ script >
97
+
98
+ </ body >
97
99
</ html >
98
100
Original file line number Diff line number Diff line change @@ -73,12 +73,12 @@ <h5 class="sidebar-title">Chapters Index</h5>
73
73
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
74
74
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
75
75
< li class ="chapter ">
76
- < div class ="sidebar-subtitle "> < strong > < a class ="chapter-title " href ="{{ url }} "> {{ chapter }}</ a > </ strong > </ div >
76
+ < div class ="sidebar-subtitle{% if page.url == indexurl %} page-active{% endif %} "> < strong > < a class ="chapter-title " href ="{{ url }} "> {{ chapter }}</ a > </ strong > </ div >
77
77
< ul class ="pseudo-list recipes-list ">
78
- {% for page in site.pages %}
79
- {% if page .url contains url %}
80
- {% unless page .url == indexurl %}
81
- < li class ="list-item recipe "> < a class ="recipe-title " href ="{{ page .url | replace: '.html', '' }} "> {{ page .title }}</ a > </ li >
78
+ {% for site_page in site.pages %}
79
+ {% if site_page .url contains url %}
80
+ {% unless site_page .url == indexurl %}
81
+ < li class ="list-item recipe{% if page.url == site_page.url %} page-active{% endif %} "> < a class ="recipe-title " href ="{{ site_page .url | replace: '.html', '' }} "> {{ site_page .title }}</ a > </ li >
82
82
{% endunless %}
83
83
{% endif %}
84
84
{% endfor %}
@@ -90,6 +90,8 @@ <h5 class="sidebar-title">Chapters Index</h5>
90
90
91
91
</ aside >
92
92
93
- </ body >
93
+ < script type ="text/javascript " src ="/js/scripts.js "> </ script >
94
+
95
+ </ body >
94
96
</ html >
95
97
Original file line number Diff line number Diff line change @@ -75,12 +75,12 @@ <h5 class="sidebar-title">Chapters Index</h5>
75
75
{% capture url %}/chapters/{{ chapter | replace: ' ', '_' | downcase }}{% endcapture %}
76
76
{% capture indexurl %}{{ url }}/index.html{% endcapture %}
77
77
< li class ="chapter ">
78
- < div class ="sidebar-subtitle "> < strong > < a class ="chapter-title " href ="{{ url }} "> {{ chapter }}</ a > </ strong > </ div >
78
+ < div class ="sidebar-subtitle{% if page.url == indexurl %} page-active{% endif %} "> < strong > < a class ="chapter-title " href ="{{ url }} "> {{ chapter }}</ a > </ strong > </ div >
79
79
< ul class ="pseudo-list recipes-list ">
80
- {% for page in site.pages %}
81
- {% if page .url contains url %}
82
- {% unless page .url == indexurl %}
83
- < li class ="list-item recipe "> < a class ="recipe-title " href ="{{ page .url | replace: '.html', '' }} "> {{ page .title }}</ a > </ li >
80
+ {% for site_page in site.pages %}
81
+ {% if site_page .url contains url %}
82
+ {% unless site_page .url == indexurl %}
83
+ < li class ="list-item recipe{% if page.url == site_page.url %} page-active{% endif %} "> < a class ="recipe-title " href ="{{ site_page .url | replace: '.html', '' }} "> {{ site_page .title }}</ a > </ li >
84
84
{% endunless %}
85
85
{% endif %}
86
86
{% endfor %}
@@ -92,6 +92,8 @@ <h5 class="sidebar-title">Chapters Index</h5>
92
92
93
93
</ aside >
94
94
95
+ < script type ="text/javascript " src ="/js/scripts.js "> </ script >
96
+
95
97
</ body >
96
98
</ html >
97
99
You can’t perform that action at this time.
0 commit comments