Skip to the content

Capsid menu

app/lib/tag-path.mjs

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

Functions

The functions of tag-path.mjs
FunctionLinesComplexityCoveredCRAPMutation
tagPath7 to 91100%OkCRAP 1No data: no mutants in this code

Imports

It imports no other module of this repo. Imported by app/components/post-row.tsx, app/lib/feed-response.ts, app/lib/nav.ts, app/lib/site-urls.server.ts, app/routes/blog._index.tsx, app/routes/blog.tags.$tag.tsx.

Source

/**
 * Encoded, not re-slugified: `tags.slug` is already the write path's normalization.
 *
 * @param {string} slug a `tags.slug` value
 * @returns {string} a site-absolute path
 */
export function tagPath(slug) {
  return `/writing/tags/${encodeURIComponent(slug)}`;
}