Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions site/src/components/Head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ import { Font } from 'astro:assets';
<Font cssVariable="--font-dm-sans" preload={[{ style: 'normal' }]} />
<Font cssVariable="--font-fragment-mono" preload={[{ style: 'normal' }]} />

{/* Go module discovery for `go get echo.labstack.com/pro/...`: Go fetches
any /pro page with ?go-get=1 and reads this tag, so installs work from the
static site alone. The proxy at go.labstack.io checks the customer token. */}
{isProPage(Astro.url.pathname) && <meta name="go-import" content="echo.labstack.com/pro mod https://go.labstack.io" />}
<meta data-pagefind-filter="product[content]" content={isProPage(Astro.url.pathname) ? 'Echo Pro' : 'Echo'} />
{isProPage(Astro.url.pathname) && Astro.url.pathname.replace(/\/$/, '') !== '/pro' && <meta data-pagefind-meta="title[content]" content={`${Astro.locals.starlightRoute.entry.data.title} · Echo Pro`} />}
Loading