Преглед изворни кода

Don't make exceptions for API navigation

Kevin van Zonneveld пре 9 година
родитељ
комит
86e587149a

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

@@ -10,7 +10,7 @@
             </select>
             </select>
         </h2>
         </h2>
         <ul class="menu-root">
         <ul class="menu-root">
-            <% type !== 'api' && site.pages.find({type: type}).sort('order').each(function (p) { %>
+            <% site.pages.find({type: type}).sort('order').each(function (p) { %>
                 <li>
                 <li>
                     <a href="/<%- p.path %>" class="sidebar-link<%- page.title === p.title ? ' current' : '' %><%- p.is_new ? ' new' : '' %>"><%- p.title %></a>
                     <a href="/<%- p.path %>" class="sidebar-link<%- page.title === p.title ? ' current' : '' %><%- p.is_new ? ' new' : '' %>"><%- p.title %></a>
                 </li>
                 </li>

+ 2 - 2
website/themes/uppy/source/js/common.js

@@ -26,7 +26,7 @@
   if (currentPageAnchor || isAPI) {
   if (currentPageAnchor || isAPI) {
     var allLinks = []
     var allLinks = []
     var sectionContainer
     var sectionContainer
-    if (isAPI) {
+    if (false && isAPI) {
       sectionContainer = document.querySelector('.menu-root')
       sectionContainer = document.querySelector('.menu-root')
     } else {
     } else {
       sectionContainer = document.createElement('ul')
       sectionContainer = document.createElement('ul')
@@ -161,7 +161,7 @@
   }
   }
 
 
   // Search with SwiftType
   // Search with SwiftType
-  
+
   (function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
   (function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
   (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
   (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
   e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
   e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);