diff --git a/superpage/src/components/Menu.jsx b/superpage/src/components/Menu.jsx index 2dfbcc5..dbd240b 100644 --- a/superpage/src/components/Menu.jsx +++ b/superpage/src/components/Menu.jsx @@ -15,7 +15,7 @@ import { } from '@headlessui/react' import { Container } from './Container' -export function Menu() { +export function Menu({ recentCourses }) { return ( @@ -35,7 +35,7 @@ export function Menu() { @@ -79,21 +79,13 @@ export function Menu() { diff --git a/superpage/src/data/courses/reciclagem-de-nr-12-maquinas-e-equipamentos.md b/superpage/src/data/courses/reciclagem-de-nr-12-maquinas-e-equipamentos.md index cdce868..72c66e5 100644 --- a/superpage/src/data/courses/reciclagem-de-nr-12-maquinas-e-equipamentos.md +++ b/superpage/src/data/courses/reciclagem-de-nr-12-maquinas-e-equipamentos.md @@ -1,7 +1,7 @@ --- id: 76a5ba94-e11c-48f5-88eb-9326df9be264 title: NR-12 Máquinas e Equipamentos -summary: ... +summary: Com foco na prevenção de acidentes, na conformidade com a NR-18 e no uso correto de EPIs, como operação, manutenção e inspeção de plataformas elevatórias, assegurando maior segurança e garantindo atendimento às exigências legais. slug: reciclagem-de-nr-12-maquinas-e-equipamentos draft: false diff --git a/superpage/src/layouts/Layout.astro b/superpage/src/layouts/Layout.astro index 3c1eba3..2179a4a 100644 --- a/superpage/src/layouts/Layout.astro +++ b/superpage/src/layouts/Layout.astro @@ -9,6 +9,9 @@ import { Container } from '~/components/Container' import { Menu } from '~/components/Menu' import { ArrowLeftStartOnRectangleIcon } from '@heroicons/react/24/solid' +import { getCollection } from 'astro:content' +const courses = await getCollection('courses', ({ data }) => data.draft != true) + const { title } = Astro.props const year = new Date().getFullYear() --- @@ -42,7 +45,7 @@ const year = new Date().getFullYear()
- +