0xShynn / tinacms.org

Organization site for general info, documentation, blogs & contribution guidelines.

Home Page:https://tinacms.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TinaCMS.org

Source code for the tinacms.org website.

Shortcodes

This site supports shortcodes in Markdown content via remark-shortcodes.

Shortcodes must be written as React components. To add a shortcode, export it from utils/shortcodes.tsx.

export function MyShortcode({ textContent }) {
  return <div>{textContent}</div>
}

Call the shortcode in your content by writing the name of the component encased in double curly braces. Key-value pairs included in the shortcode will be passed to your component as props.

{{ MyShortcode textContent="Example shortcode" }}

Shortcode Limitations

Shortcodes must be standalone elements; "wrapping" shortcodes will not work.

About

Organization site for general info, documentation, blogs & contribution guidelines.

https://tinacms.org/


Languages

Language:TypeScript 98.9%Language:JavaScript 1.1%