Setup URL Plugin
- Because markdown uses file system paths, these links do not work when rendered as html.
- We can use the eleventy plugin InputPath to URL to convert file system links to URLs.
Import plugin on eleventy.config.js
import { InputPathToUrlTransformPlugin } from "@11ty/eleventy";
Add plugin on eleventy.config.js to default function
eleventyConfig.addPlugin(InputPathToUrlTransformPlugin);
Test page and click link
- Links should work on dev server now
npm run serve
Commit
git add .
git commit -m 'Adds url plugin`
git push
Next
Add Styles