Skip to main content
Module

x/lume/deps/fff.ts>postTypeDiscovery

🔥 Static site generator for Deno 🦕
Very Popular
Latest
variable postTypeDiscovery
import { postTypeDiscovery } from "https://deno.land/x/lume@v2.1.4/deps/fff.ts";

Post Type Discovery

Examples

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