Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: define global urls with markdown refs #3504

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

webketje
Copy link
Contributor

@webketje webketje commented Jan 31, 2024

Added value: define reusable links in a single config file. By having @metalsmith/markdown retrieve them from global metadata, they are also available for e.g. layouts to render.

Note: this is a non-exhaustive implementation of the plugin's globalRefs option. Just like #2934, feel free to amend/ close/ modify/ rebase or use this PR as you see fit (you could also define these links directly in metalsmith.metadata() or in a json/js/yaml file)

Added value: define reusable links in a single config file.
By having @metalsmith/markdown retrieve them from global metadata,
they are also available for e.g. layouts to render.
Copy link

netlify bot commented Jan 31, 2024

You can preview this change here:

Built without sensitive environment variables

Name Link
🔨 Latest commit 1c31e53
🔍 Latest deploy log https://app.netlify.com/sites/govuk-design-system-preview/deploys/65bada919d43580008cba01a
😎 Deploy Preview https://deploy-preview-3504--govuk-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant