jekyll-generate-page
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Jekyll generate page

Generate a Jekyll page.

Links

Example

import { render } from "jekyll-generate-page";

/**
 * HTML (or markdown)
 */
const html = `
<h1>About us</h1>
<p>Deserunt in et enim exercitation est voluptate est fugiat dolore amet sit amet.</p>
`;

/**
 * Render
 */
render("default", {
  jekyll: {
    layout: "page",
    permalink: "/about/",
    title: "About us",
  },
  html,
})
  .then((output) => {
    console.log(output);
  })
  .catch((err) => {
    console.error(err);
  });

Readme

Keywords

none

Package Sidebar

Install

npm i jekyll-generate-page

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

358 kB

Total Files

38

Last publish

Collaborators

  • theel0ja