Skip to content
forked from tinacms/tina.io

Website for TinaCMS 🦙 - General info, documentation, blogs & contribution guidelines.

Notifications You must be signed in to change notification settings

kldavis4/tina.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Website for TinaCMS 🦙 - General info, documentation, blogs & contribution guidelines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MDX 61.4%
  • TypeScript 36.0%
  • JavaScript 2.0%
  • Other 0.6%