astro-accelerator-utils 0.3.8 → 0.3.10

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.
@@ -25,6 +25,7 @@ export class Navigation {
25
25
  * @returns {NavPage[]}
26
26
  */
27
27
  menu(currentUrl: URL, subfolder: string, menu: (MenuItem | 'auto')[]): NavPage[];
28
+ addMenuItem(pages: any, item: any, subfolder: any): void;
28
29
  /**
29
30
  *
30
31
  * @param {NavPage} page
@@ -47,6 +48,7 @@ export class Navigation {
47
48
  * @returns {NavPage[]}
48
49
  */
49
50
  footer(currentUrl: URL, _: TranslationProvider, translations: any, subfolder: string, menu: (MenuItem | 'categories' | 'tags' | 'toptags')[]): NavPage[];
51
+ addFooterItem(pages: any, item: any, links: any, _: any, translations: any, subfolder: any, entries: any): void;
50
52
  /**
51
53
  *
52
54
  * @param {TaxonomyLinks} links
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-accelerator-utils",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "description": "Astro utilities for Astro Accelerator.",
5
5
  "main": "index.mjs",
6
6
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "homepage": "https://astro.stevefenton.co.uk/",
34
34
  "devDependencies": {
35
- "@types/node": "^18.19.39",
35
+ "@types/node": "^22.0.0",
36
36
  "jest": "^29.7.0",
37
37
  "jest-spec": "^0.0.3",
38
38
  "rehype-stringify": "^9.0.4",
@@ -27,4 +27,9 @@ export interface Frontmatter {
27
27
  navMenu?: boolean;
28
28
  robots?: string;
29
29
  redirect?: string;
30
+ links: {
31
+ text: string;
32
+ url: string;
33
+ rel: string;
34
+ }[];
30
35
  }