eleventy-plugin-markdown-page-links 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -1
  2. package/readme.md +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleventy-plugin-markdown-page-links",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "An Eleventy plugin to generate a list of links for a particular page.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,6 +14,7 @@
14
14
  "author": "John M. Wargo",
15
15
  "license": "MIT",
16
16
  "type": "module",
17
+ "main": "eleventy-plugin-markdown-page-links.js",
17
18
  "scripts": {
18
19
  "build": "tsc && eleventy --quiet",
19
20
  "start": "tsc && eleventy --serve --quiet",
package/readme.md CHANGED
@@ -18,7 +18,7 @@ npm install eleventy-plugin-markdown-page-links
18
18
  In your project's eleventy.config.js file, import the package (at the top of the file) using:
19
19
 
20
20
  ``` ts
21
- const pageLinks = require('eleventy-plugin-post-stats');
21
+ import pageLinks from 'eleventy-plugin-markdown-page-links.js';
22
22
  ```
23
23
 
24
24
  And in the same file's module.exports section, along with all the other plugin statements you site uses, add the following `addPlugin` method call:
@@ -35,7 +35,7 @@ module.exports = eleventyConfig => {
35
35
  The complete file should look something like the following (but with your site's other stuff in it as well):
36
36
 
37
37
  ``` ts
38
- const pageLinks = require('./eleventy-plugin-markdown-page-links.js');
38
+ import pageLinks from 'eleventy-plugin-markdown-page-links.js';
39
39
 
40
40
  module.exports = eleventyConfig => {
41
41