From 19247b29a6edc04a103a194b310f760f141ecf61 Mon Sep 17 00:00:00 2001 From: mashehu Date: Mon, 7 Oct 2024 14:48:51 +0200 Subject: [PATCH] fix title on module pages --- sites/main-site/src/layouts/ComponentPageLayout.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/main-site/src/layouts/ComponentPageLayout.astro b/sites/main-site/src/layouts/ComponentPageLayout.astro index cc19b362d3..e4ff1e9080 100644 --- a/sites/main-site/src/layouts/ComponentPageLayout.astro +++ b/sites/main-site/src/layouts/ComponentPageLayout.astro @@ -12,7 +12,7 @@ export interface Props { const { name, description, type, topics } = Astro.props; const suffix = type === 'modules' ? name.replace('_', '/') : name; const gh_url = 'https://github.com/nf-core/modules/tree/master/' + type + '/nf-core/' + suffix; -const title = type === 'modules' ? 'type/' : '' + name.replaceAll('_', '_'); +const title = (type === 'modules' ? 'modules/' : '') + name.replaceAll('_', '_'); ---