1.1.0 • Published 3 years ago
@sphido/meta v1.1.0
@sphido/meta
Page extender that add follow properties to page object:
- page.title- try detect correct title from- page.content
- page.date- detect date if is not set by date of last change
- page.slug- using slugify to made url safe slug
- page.tags- create Set from tags
Install
yarn add @sphido/markedimport globby from 'globby';
import {getPages} from '@sphido/core';
import {frontmatter} from '@sphido/frontmatter';
import {meta} from '@sphido/meta';
import {markdown} from '@sphido/markdown';
(async () => {
	const pages = await getPages(
		await globby('content/**/*.md'),
		...[
			frontmatter,
            markdown,
            meta,
		],
	);
})();Source codes
https://github.com/sphido/sphido/tree/main/packages/sphido-meta
1.1.0
3 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago