import { postTypeDiscovery } from "https://deno.land/x/lume@v2.4.1/deps/fff.ts";
Post Type Discovery
Examples
Example 1
Example 1
import { postTypeDiscovery } from 'fff-flavored-frontmatter'
const helloWorld = {
title: 'Hello',
summary: 'World!',
}
const fooBar = {
summary: 'foo',
tags: ['bar'],
}
// 'article'
console.log(postTypeDiscovery(helloWorld))
// 'note'
console.log(postTypeDiscovery(fooBar))
type
(fm: FFFFlavoredFrontmatter) => PostType