@refrakt-md/astro 0.24.4 → 0.24.6
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.
- package/package.json +5 -5
- package/src/BaseLayout.astro +5 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refrakt-md/astro",
|
|
3
3
|
"description": "Astro integration for refrakt.md — render Markdoc runes in Astro projects",
|
|
4
|
-
"version": "0.24.
|
|
4
|
+
"version": "0.24.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"build": "tsc"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@refrakt-md/behaviors": "0.24.
|
|
37
|
-
"@refrakt-md/content": "0.24.
|
|
38
|
-
"@refrakt-md/transform": "0.24.
|
|
39
|
-
"@refrakt-md/types": "0.24.
|
|
36
|
+
"@refrakt-md/behaviors": "0.24.6",
|
|
37
|
+
"@refrakt-md/content": "0.24.6",
|
|
38
|
+
"@refrakt-md/transform": "0.24.6",
|
|
39
|
+
"@refrakt-md/types": "0.24.6"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"astro": "^5.0.0"
|
package/src/BaseLayout.astro
CHANGED
|
@@ -10,11 +10,14 @@ interface Props {
|
|
|
10
10
|
page: LayoutPageData;
|
|
11
11
|
seo?: { jsonLd: object[]; og: { title?: string; description?: string; image?: string; type?: string; url?: string } };
|
|
12
12
|
lang?: string;
|
|
13
|
+
/** Whether to render the search UI. Defaults to true; pass false (from
|
|
14
|
+
* `SiteConfig.search`) to strip the search chrome. */
|
|
15
|
+
search?: boolean;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
|
-
const { theme, page, seo, lang = 'en' } = Astro.props;
|
|
18
|
+
const { theme, page, seo, lang = 'en', search } = Astro.props;
|
|
16
19
|
|
|
17
|
-
const html = renderPage({ theme, page });
|
|
20
|
+
const html = renderPage({ theme, page, search });
|
|
18
21
|
const head = buildSeoHead({ title: page.title, description: undefined, frontmatter: page.frontmatter, seo });
|
|
19
22
|
const needsBehaviors = hasInteractiveRunes(page.renderable);
|
|
20
23
|
const contextData = JSON.stringify({ pages: page.pages, currentUrl: page.url });
|