@@ -91,10 +91,12 @@ <h1>{{ name }}'s Blog</h1>
9191 < section class ="series-navigation-sidebar ">
9292 < h4 > This post is part of a series.</ h4 >
9393 {% if post.previous_part_slug %}
94- < a href ="posts/{{ post.previous_part_slug }}.html " class ="series-link "> ← Read Part 1</ a >
94+ < a href ="posts/{{ post.previous_part_slug }}.html " class ="series-link "> ← Read Part {{
95+ post.previous_part_num }}</ a >
9596 {% endif %}
9697 {% if post.next_part_slug %}
97- < a href ="posts/{{ post.next_part_slug }}.html " class ="series-link "> Read Part 2 →</ a >
98+ < a href ="posts/{{ post.next_part_slug }}.html " class ="series-link "> Read Part {{ post.next_part_num
99+ }} →</ a >
98100 {% endif %}
99101 </ section >
100102 {% endif %}
@@ -137,12 +139,12 @@ <h2 class="section-heading">Technologies & Keywords</h2>
137139 < nav class ="post-navigation ">
138140 <!-- OLDER POST LINK LOGIC -->
139141 {% if post.previous_part_slug %}
140- <!-- If this is Part 2, the "Older" link MUST be Part 1 -->
142+ <!-- Link back to the previous part dynamically -->
141143 < a href ="posts/{{ post.previous_part_slug }}.html " class ="nav-link prev-link ">
142144 < span class ="arrow "> ←</ span >
143145 < span class ="nav-text ">
144- < span class ="nav-label "> Read Part 1 </ span >
145- {{ post.title | replace(" (Part 2)", "") }}
146+ < span class ="nav-label "> Read Part {{ post.previous_part_num }} </ span >
147+ {{ post.title.split(' (Part ')[0] }}
146148 </ span >
147149 </ a >
148150 {% elif post.next_post %}
@@ -161,11 +163,11 @@ <h2 class="section-heading">Technologies & Keywords</h2>
161163
162164 <!-- NEWER POST LINK LOGIC -->
163165 {% if post.next_part_slug %}
164- <!-- If this is Part 1, the "Newer" link MUST be Part 2 -->
166+ <!-- Link forward to the next part dynamically -->
165167 < a href ="posts/{{ post.next_part_slug }}.html " class ="nav-link next-link ">
166168 < span class ="nav-text ">
167- < span class ="nav-label "> Read Part 2 </ span >
168- {{ post.title | replace(" (Part 1)", "") }}
169+ < span class ="nav-label "> Read Part {{ post.next_part_num }} </ span >
170+ {{ post.title.split(' (Part ')[0] }}
169171 </ span >
170172 < span class ="arrow "> →</ span >
171173 </ a >
0 commit comments