Skip to content

Separate page content using horizontal rules in NotionCMS

Notifications You must be signed in to change notification settings

agency-kit/ncms-plugin-segment

Repository files navigation

segment your notion CMS docs

ncms-plugin-segment

With NotionCMS.Need we say more?

Not using NotionCMS?! It lets you effortlessly leverage your Notion database as a CMS.

Check it out here: https://www.agencykit.so/notion-cms/guide/


Usage

segment your notion docs

Okay, well it's pretty basic:

  1. Use NotionCMS
  2. Download this package npm i -D ncms-plugin-segment
  3. Install the plugin
new NotionCMS({
  databaseId: '...your db',
  notionAPIKey: process.env.YOUR_KEY,
  plugins: [
    ncmsSegmentPlugin(),
  ]
})
  1. Use horizontal rules in your pages where you want to break into sections.
  2. Now your ncms page objects will have a sections property holding an array of all of your sections.
  3. Sprinkle them around as you wish.

Options

keepRules boolean

By default this plugin strips out the horizontal rules in the process but if you happen to want them in your html, set this to true.

About

Separate page content using horizontal rules in NotionCMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published