Skip to content

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

Merged
delucis merged 6 commits into
mainfrom
chris/head
May 13, 2023
Merged

Support setting custom <head> tags in config or frontmatter.#42
delucis merged 6 commits into
mainfrom
chris/head

Conversation

@delucis
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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
@delucis delucis deleted the chris/head branch May 13, 2023 23:49
@astrobot-houston astrobot-houston mentioned this pull request May 13, 2023
Yoxnear pushed a commit to Yoxnear/starlight-custom that referenced this pull request Jul 23, 2025
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