/[sudobot]/trunk/docs/utils/pages.ts
ViewVC logotype

Diff of /trunk/docs/utils/pages.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 575 by rakinar2, Mon Jul 29 17:59:26 2024 UTC revision 626 by rakinar2, Sat Sep 7 09:38:45 2024 UTC
# Line 119  function loadDocsPages() { Line 119  function loadDocsPages() {
119              ({              ({
120                  name: page.short_name ?? "Unnamed",                  name: page.short_name ?? "Unnamed",
121                  url: page.url,                  url: page.url,
122              } satisfies DocsPageWithoutChildren),              }) satisfies DocsPageWithoutChildren,
123      );      );
124      const pages: Record<string, DocsPageWithoutChildren[]> = {};      const pages: Record<string, DocsPageWithoutChildren[]> = {};
125    
# Line 214  export const flatten = ( Line 214  export const flatten = (
214          return acc;          return acc;
215      }, []);      }, []);
216  };  };
217    
218    export const isBlogPath = (path: string) => {
219        return path.startsWith("/blog/") || path === "/blog";
220    };

Legend:
Removed from v.575  
changed lines
  Added in v.626

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26