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
| Function | Lines | Complexity | Covered | CRAP | Mutation |
|---|---|---|---|---|---|
| linkToWebmention | 7 to 9 | 1 | No data: no coverage report in this map | No data: no coverage report in this map | No 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"`;
}