astro-accelerator-utils 0.3.32 → 0.3.33

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.
@@ -26,6 +26,12 @@ export function showInMenu(p: MarkdownInstance): boolean;
26
26
  * @returns {boolean}
27
27
  */
28
28
  export function isAuthor(p: MarkdownInstance): boolean;
29
+ /**
30
+ * Predicate for whether a page is an author page
31
+ * @param {MarkdownInstance} p
32
+ * @returns {boolean}
33
+ */
34
+ export function notAuthor(p: MarkdownInstance): boolean;
29
35
  /**
30
36
  * Predicate for whether a page is a search page
31
37
  * @param {MarkdownInstance} p
@@ -60,6 +60,20 @@ export function isAuthor (p) {
60
60
  return false;
61
61
  }
62
62
 
63
+ /**
64
+ * Predicate for whether a page is an author page
65
+ * @param {MarkdownInstance} p
66
+ * @returns {boolean}
67
+ */
68
+ export function notAuthor (p) {
69
+ if (p?.frontmatter?.layout?.indexOf('/Author.astro') < 0) {
70
+ return true;
71
+ }
72
+
73
+ return false;
74
+ }
75
+
76
+
63
77
  /**
64
78
  * Predicate for whether a page is a search page
65
79
  * @param {MarkdownInstance} p
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-accelerator-utils",
3
- "version": "0.3.32",
3
+ "version": "0.3.33",
4
4
  "description": "Astro utilities for Astro Accelerator.",
5
5
  "main": "index.mjs",
6
6
  "type": "module",