22 lines
648 B
JavaScript
22 lines
648 B
JavaScript
import { contentAsText } from '../helpers.js'
|
|
import { parse } from 'marked'
|
|
|
|
const FOOTER_TEXT = `
|
|
Maintained by the Terrace Team. Find an issue? [Let us know](/issues)!
|
|
|
|
Site contents licensed under the [CC BY 3.0 license](https://creativecommons.org/licenses/by/3.0/)<br/>
|
|
All code examples licensed under the [MIT license](https://opensource.org/licenses/MIT)
|
|
`
|
|
|
|
export default async function (doc, rootLevel) {
|
|
const { next, line, match, tail, level, head } = doc
|
|
|
|
const node = {
|
|
type: `Markdown`,
|
|
class: 'text-center mt-32 mx-auto text-neutral-50/75 prose-a:text-primary-100/75',
|
|
text: parse(FOOTER_TEXT)
|
|
}
|
|
|
|
return node
|
|
}
|