fix(models): link primary CTA to /workflows/model/{slug} on comfy.org

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
bymyself
2026-05-04 17:40:38 +00:00
parent dd4eb42397
commit a001e588bc
2 changed files with 6 additions and 2 deletions

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import { cn } from '@comfyorg/tailwind-utils'
import BrandButton from '../common/BrandButton.vue'
import { externalLinks } from '../../config/routes'
import { t } from '../../i18n/translations'
const {
slug,
displayName,
huggingFaceUrl,
docsUrl,
@@ -12,6 +12,7 @@ const {
workflowCount,
directory
} = defineProps<{
slug: string
displayName: string
huggingFaceUrl: string
docsUrl?: string
@@ -20,6 +21,8 @@ const {
directory: string
}>()
const workflowsUrl = `https://www.comfy.org/workflows/model/${slug}`
const dirDisplayMap: Record<string, string> = {
diffusion_models: 'Diffusion Model',
checkpoints: 'Checkpoint',
@@ -71,7 +74,7 @@ const isPartnerNode = directory === 'partner_nodes'
<div class="flex flex-col gap-3 sm:flex-row">
<BrandButton
:href="externalLinks.workflows"
:href="workflowsUrl"
variant="solid"
size="lg"
class="w-full uppercase sm:w-auto sm:min-w-48"

View File

@@ -120,6 +120,7 @@ const pageDescription = `Run ${displayName} in ComfyUI. ${model.workflowCount} w
</Fragment>
<ModelHeroSection
slug={model.slug}
displayName={displayName}
huggingFaceUrl={model.huggingFaceUrl}
docsUrl={model.docsUrl}