@lupinum/ginko-content
@lupinum/ginko-content
Files as a content source for @lupinum/ginko.
At build time it reads content/ and builds the same bundle the Ginko platform serves, so a site
reads files and platform content the same way, with useGinko. Use it for content that developers
maintain: docs, a blog, legal pages, a price list. It reads Markdown, YAML, JSON and CSV.
Use
npm install @lupinum/ginko @lupinum/ginko-content
@lupinum/ginko is a peer dependency. Images get WebP variants through sharp, an optional peer dependency: install it
(npm install sharp, version 0.33 to 0.35) if your site has image files. ginko check runs without it.
Give a brick source: 'files' and one f.markdown field:
// ginko.config.ts
docs: collection({
label: 'Docs',
source: 'files',
max: 500,
order: 'manual',
route: { en: '/docs/[slug]' },
fields: { title: f.text('Title'), slug: f.slug('Address', { from: 'title' }), body: f.markdown('Text') },
}),
content/docs/1.getting-started.md one entry; the number is the order
content/docs/1.getting-started.de.md its translation
The Ginko Nuxt module finds this package by itself. It serves the Markdown of a page with the page,
adds <GinkoMarkdown> and a search index. A file error fails the build and names the file.
Full guide: Content from files.
Stability
You install this package; you do not import it. The Ginko module and ginko check load it. Its
exports are the contract between the Ginko packages and can change in any release.
License
MIT © Lupinum OG
Related Packages
Full-featured Convex integration for Nuxt with SSR, real-time subscriptions, and...
Build accessible, route-aware product tours with a Vue-native API and Nuxt-first...
Version History
| Version | Released | License |
|---|---|---|
| 0.6.5 | MIT | |
| 0.6.4 | MIT | |
| 0.6.3 | MIT | |
| 0.6.2 | MIT | |
| 0.6.1 | MIT | |
| 0.6.0 | MIT | |
| 0.5.0 | MIT | |
| 0.4.0 | MIT | |
| 0.3.6 | MIT | |
| 0.3.5 | MIT | |
| 0.3.4 | MIT | |
| 0.3.3 | MIT | |
| 0.3.2 | MIT | |
| 0.3.1 | MIT | |
| 0.3.0 | MIT | |
| 0.2.1 | MIT | |
| 0.2.0 | MIT | |
| 0.1.6 | MIT | |
| 0.1.5 | MIT | |
| 0.1.4 | MIT | |
| 0.1.3 | MIT | |
| 0.1.2 | MIT | |
| 0.1.1 | MIT | |
| 0.1.0 | MIT |
Pre-releases (16)
| Version | Released | License |
|---|---|---|
| 1.0.0-beta.11 | MIT | |
| 1.0.0-beta.9 | MIT | |
| 1.0.0-beta.8 | MIT | |
| 1.0.0-beta.7 | MIT | |
| 1.0.0-beta.6 | MIT | |
| 1.0.0-beta.5 | MIT | |
| 1.0.0-beta.4 | MIT | |
| 1.0.0-beta.3 | MIT | |
| 1.0.0-beta.2 | MIT | |
| 1.0.0-beta.1 | MIT | |
| 0.4.0-rc.2 | MIT | |
| 0.4.0-rc.1 | MIT | |
| 0.3.0-rc.4 | MIT | |
| 0.3.0-rc.3 | MIT | |
| 0.3.0-rc.2 | MIT | |
| 0.3.0-rc.1 | MIT |