Module

x/lume/deps/fff.ts>postTypeDiscovery

🔥 Static site generator for Deno 🦕
Very Popular
Latest
variable postTypeDiscovery
import { postTypeDiscovery } from "https://dotland.deno.dev/x/lume@v2.4.2/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