Browse Source

website: Fix highlighting of current post in a series

Kevin van Zonneveld 6 years ago
parent
commit
0c37060eb9

+ 1 - 1
website/themes/uppy/layout/partials/sidebar_blog_links.ejs

@@ -18,7 +18,7 @@
       }
     %>
   <li>
-    <a href="/<%- post.path %>" class="sidebar-link<%- page.title === post.title ? ' current' : '' %>"><%- title %></a>
+    <a href="/<%- post.path %>" class="sidebar-link<%- page.title === post.title || (page.series && page.series === post.series) ? ' current' : '' %>"><%- title %></a>
   </li>
   <% }) %>
 </ul>

+ 1 - 0
website/themes/uppy/source/css/_page.scss

@@ -409,6 +409,7 @@
 }
 
 .postseries-link {
+  font-weight: 300;
   &.current {
     font-weight: 600;
   }