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

Support setting custom <head> tags in config or frontmatter. #42

Merged
merged 6 commits into from
May 13, 2023

Conversation

delucis
Copy link
Member

@delucis delucis commented May 13, 2023

Adds support for users to inject custom <head> tags via a head config option:

starlight({
  head: [
    // Example: add Fathom analytics script tag.
    {
      tag: 'script',
      attrs: {
        src: 'https://cdn.usefathom.com/script.js',
        'data-site': 'MY-FATHOM-ID',
        defer: true,
      },
    },
  ],
});

@changeset-bot
Copy link

changeset-bot bot commented May 13, 2023

🦋 Changeset detected

Latest commit: fb48cd1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@astrojs/starlight Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented May 13, 2023

Deploy Preview for astro-starlight ready!

Name Link
🔨 Latest commit fb48cd1
🔍 Latest deploy log https://app.netlify.com/sites/astro-starlight/deploys/64601fae26a79a0008b96b11
😎 Deploy Preview https://deploy-preview-42--astro-starlight.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 settings.

@delucis delucis merged commit c6c1b67 into main May 13, 2023
6 checks passed
@delucis delucis deleted the chris/head branch May 13, 2023 23:49
@astrobot-houston astrobot-houston mentioned this pull request May 13, 2023
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.

None yet

1 participant