Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

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.
  }
}