File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
components/pages/download Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- import { getCollection } from ' astro:content' ;
2
+ import { getCollection , render } from ' astro:content' ;
3
3
4
4
const { family = ' nix' } = Astro .props ;
5
5
const accordionId = ` download-${family }-accordion ` ;
@@ -13,7 +13,7 @@ let downloadOptions = (await getCollection('download')).filter(
13
13
<div class =" download-accordion-menu" >
14
14
{
15
15
downloadOptions .map (async (option ) => {
16
- const { Content } = await option . render ();
16
+ const { Content } = await render (option );
17
17
const needsInstallInfix =
18
18
option .data .family === ' nix' && option .data .platform !== ' more' ;
19
19
const optionId = ` ${option .data .family }-${needsInstallInfix ? ' install-' : ' ' }${option .data .platform } ` ;
Original file line number Diff line number Diff line change 1
1
---
2
- import { getCollection } from ' astro:content' ;
2
+ import { getCollection , render } from ' astro:content' ;
3
3
import Container from ' ../../../../components/layout/Container.astro' ;
4
4
import PageHeader from ' ../../../../components/layout/PageHeader.astro' ;
5
5
import Layout from ' ../../../../layouts/Layout.astro' ;
@@ -17,7 +17,7 @@ export async function getStaticPaths() {
17
17
}
18
18
19
19
const { entry } = Astro .props ;
20
- const { Content } = await entry . render ();
20
+ const { Content } = await render (entry );
21
21
---
22
22
23
23
<Layout title =`${entry .data .title } | Blog` >
Original file line number Diff line number Diff line change 1
1
---
2
- import { getCollection } from ' astro:content' ;
2
+ import { getCollection , render } from ' astro:content' ;
3
3
4
4
import Container from ' ../../../components/layout/Container.astro' ;
5
5
import PageHeader from ' ../../../components/layout/PageHeader.astro' ;
@@ -15,7 +15,7 @@ export async function getStaticPaths() {
15
15
}
16
16
17
17
const { entry } = Astro .props ;
18
- const { Content } = await entry . render ();
18
+ const { Content } = await render (entry );
19
19
---
20
20
21
21
<Layout title ={ entry .data .name } >
Original file line number Diff line number Diff line change 1
1
---
2
- import { getCollection , getEntry } from ' astro:content' ;
2
+ import { getCollection , getEntry , render } from ' astro:content' ;
3
3
import Container from ' ../components/layout/Container.astro' ;
4
4
import Button from ' ../components/ui/Button.astro' ;
5
5
import NixosSearchInput from ' ../components/ui/NixosSearchInput.astro' ;
77
77
<Container class =" grid gap-8 md:grid-cols-3 md:gap-4" >
78
78
{
79
79
landingFeatures .map (async (feature ) => {
80
- const { Content } = await feature . render ();
80
+ const { Content } = await render (feature );
81
81
return (
82
82
<div class = " flex flex-col text-center" >
83
83
<InlineSVG
Original file line number Diff line number Diff line change 1
1
---
2
- import { getCollection } from ' astro:content' ;
2
+ import { getCollection , render } from ' astro:content' ;
3
3
import Container from ' ../components/layout/Container.astro' ;
4
4
import Divider from ' ../components/layout/Divider.astro' ;
5
5
import PageHeader from ' ../components/layout/PageHeader.astro' ;
@@ -96,7 +96,7 @@ const learningResources = [
96
96
<Container class =" grid items-start gap-4 py-16 md:grid-cols-3" >
97
97
{
98
98
learningManuals .map (async (manual ) => {
99
- const { Content } = await manual . render ();
99
+ const { Content } = await render (manual );
100
100
return (
101
101
<div class = " border-0.5 border-nix-blue-darker flex flex-col items-center justify-start gap-4 rounded-2xl p-4" >
102
102
<article >
You can’t perform that action at this time.
0 commit comments