diff --git a/lib/exporter/html.ts b/lib/exporter/html.ts index 4ff9c78..24c33e8 100644 --- a/lib/exporter/html.ts +++ b/lib/exporter/html.ts @@ -254,6 +254,8 @@ function buildHead(page: Page) { + + ${escapeHtml(page.seo.title)} diff --git a/lib/exporter/manifest.link.tokens.test.ts b/lib/exporter/manifest.link.tokens.test.ts new file mode 100644 index 0000000..3c72170 --- /dev/null +++ b/lib/exporter/manifest.link.tokens.test.ts @@ -0,0 +1,21 @@ +import { describe, it, expect } from 'vitest' +import { exportPage } from '@/lib/exporter/html' +import { pageSchema, type Page } from '@/lib/schema/page' + +function makePage(): Page { + return pageSchema.parse({ + title: 'Head Links', + locale: 'en', + theme: { primaryColor: '#2563eb', fontFamily: 'Inter' }, + sections: [], + form: { actionUrl: '', fields: [], spamProtection: { honeypotFieldName: '_hp', minSubmitSeconds: 2 } }, + seo: { title: 't', description: 'd' }, + }) +} + +describe('Exporter - head 링크 토큰', () => { + it('site.webmanifest 링크를 포함한다', () => { + const out = exportPage(makePage()) + expect(out.html).toMatch(//) + }) +})