Skip to content

Since 0.25.0

getMarkdownUrl

The Markdown URL of the item's page.

View Markdown
On this page

Returns the absolute URL of the item page's Markdown: the page's URL on siteUrl with .md appended. The item must declare page.

src/app/about/page.tsx
aboutItem.getMarkdownUrl(); // "https://example.com/about.md"

Signature

@qino/cms
item.getMarkdownUrl(): string;

Returns

string: page joined to siteUrl, with .md appended after any trailing /. A page of / gives /index.md, and qino build then skips writing its own index.md.

Throws

  • Item "<file>" has no page: declare it to get page Markdown and a Markdown URL.

See also