فهرست منبع

website: Fix highlighting of current post in a series

Kevin van Zonneveld 6 سال پیش
والد
کامیت
0c37060eb9
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 1
      website/themes/uppy/layout/partials/sidebar_blog_links.ejs
  2. 1 0
      website/themes/uppy/source/css/_page.scss

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

@@ -18,7 +18,7 @@
       }
       }
     %>
     %>
   <li>
   <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>
   </li>
   <% }) %>
   <% }) %>
 </ul>
 </ul>

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

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