Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theel0ja/jekyll-generate-page
Generate a Jekyll page.
https://github.com/theel0ja/jekyll-generate-page
jekyll
Last synced: 28 days ago
JSON representation
Generate a Jekyll page.
- Host: GitHub
- URL: https://github.com/theel0ja/jekyll-generate-page
- Owner: theel0ja
- Created: 2018-06-19T21:33:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-20T11:00:16.000Z (over 6 years ago)
- Last Synced: 2024-11-12T19:44:52.635Z (3 months ago)
- Topics: jekyll
- Language: TypeScript
- Homepage: https://theel0ja.info/jekyll-generate-page/
- Size: 146 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jekyll generate page
Generate a Jekyll page.## Links
* [NPM package](https://www.npmjs.com/package/jekyll-generate-page)
* [Documentation](https://theel0ja.info/jekyll-generate-page/)## Example
```ts
import { render } from "jekyll-generate-page";/**
* HTML (or markdown)
*/
const html = `About us
Deserunt in et enim exercitation est voluptate est fugiat dolore amet sit amet.
`;/**
* Render
*/
render("default", {
jekyll: {
layout: "page",
permalink: "/about/",
title: "About us",
},
html,
})
.then((output) => {
console.log(output);
})
.catch((err) => {
console.error(err);
});
```