astro-accelerator-utils 0.2.26 → 0.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,6 +32,12 @@ export class Navigation {
32
32
  * @returns {NavPage[]}
33
33
  */
34
34
  menu(currentUrl: URL, subfolder: string, menu: (NavPage | 'auto')[]): NavPage[];
35
+ /**
36
+ *
37
+ * @param {NavPage} page
38
+ * @param {NavPage[]} pageList
39
+ */
40
+ getChildren(page: NavPage, pageList: NavPage[]): import("../../types/NavPage").NavPage[];
35
41
  /**
36
42
  *
37
43
  * @param {string} subfolder
@@ -364,6 +364,7 @@ export class Navigation {
364
364
 
365
365
  /** @type {NavPage} */
366
366
  const entry = {
367
+ fullTitle: page.frontmatter.title,
367
368
  section: page.frontmatter.navSection ?? page.frontmatter.navTitle ?? page.frontmatter.title,
368
369
  title: page.frontmatter.navTitle ?? page.frontmatter.title,
369
370
  url: url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-accelerator-utils",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "description": "Astro utilities for Astro Accelerator.",
5
5
  "main": "index.mjs",
6
6
  "type": "module",
@@ -1,5 +1,6 @@
1
1
  export interface NavPage {
2
2
  section?: string;
3
+ fullTitle: string;
3
4
  title: string;
4
5
  url: string;
5
6
  order: number;