opral / inlang.com

This repo is for collecting issues around inlang.com (https://github.com/opral/monorepo/tree/main/inlang/source-code/website)
1 stars 0 forks source link

Use front matter to set page based information for rendering and seo #41

Closed NilsJacobsen closed 5 months ago

NilsJacobsen commented 5 months ago
NilsJacobsen commented 5 months ago

Update:

const MarkdownFrontmatter = Type.Object({
        title: Type.String(),
        description: Type.String(),
    })

@samuel.stroschein I would add this type to versioned interfaces, what do you think?

samuelstroschein commented 5 months ago

@nils.jacobsen putting it to versioned interfaces does not seem valuable. no other code than the website seems to use this type. the markdown documents can't use "use" the type

NilsJacobsen commented 5 months ago

Well that is true, then I keep it in the package.

can't use "use"

?

samuelstroschein commented 5 months ago

markdown can't import typescript