@elderjs/plugin-references
TypeScript icon, indicating that this package has built-in type declarations

1.8.0-beta.7 • Public • Published

Elder.js Plugin: References

Easily add wikipedia style references to your content.

  1. Simply wrap references in your content like so: An amazing fact.{{ref}}References goes here{{/ref}}.
  2. Add {{referenceList /}} to your content or add {@html helpers.shortcode({name: "referenceList"})} to your Svelte template to display all of the references collected.

Example: See references in action on this post: https://nicholasreese.com/how-to-generate-more-referrals/

Install

npm install --save @elderjs/plugin-references

Config

Once installed, open your elder.config.js and configure the plugin by adding @elderjs/plugin-references to your plugin object.

plugins: {
  '@elderjs/plugin-references': {
    referenceListLabel: 'References: ', // this is the label shown for the reference list.
  }
}

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @elderjs/plugin-references

Weekly Downloads

1

Version

1.8.0-beta.7

License

MIT

Unpacked Size

9.86 kB

Total Files

6

Last publish

Collaborators

  • vonadz