Skip to the content

Capsid menu

app/lib/webmention/advertise.ts

7 lines and 1 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.

Functions

The functions of advertise.ts
FunctionLinesComplexityCoveredCRAPMutation
linkToWebmention7 to 91No data: no coverage report in this mapNo data: no coverage report in this mapNo data: no mutants in this code

Imports

It imports app/lib/seo.ts. Imported by app/routes/blog.$slug.tsx.

Source

import { SITE_ORIGIN } from "~/lib/seo";

// Advertised in both a `Link` header and `<link rel="webmention">`, since senders look in either.
// `SITE_ORIGIN`, not the request's origin, so both values in one header name one host during the cutover.
export const WEBMENTION_URL = `${SITE_ORIGIN}/webmention`;

export function linkToWebmention() {
  return `<${WEBMENTION_URL}>; rel="webmention"`;
}