From 71bf3fe090ee55c9a98afd0da61b9dafa4230320 Mon Sep 17 00:00:00 2001 From: "dong.nguyen" Date: Wed, 14 Oct 2026 23:34:50 +0700 Subject: [PATCH] fixed name in resume pdf --- scripts/generate-resume.ts | 6 +++--- src/components/layout/Layout.tsx | 12 +++--------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/scripts/generate-resume.ts b/scripts/generate-resume.ts index 7f1dbc6..840dd52 100644 --- a/scripts/generate-resume.ts +++ b/scripts/generate-resume.ts @@ -139,13 +139,13 @@ function renderProjects(projs: typeof projects): string { // --- Assemble HTML --- const html = template - .replace('{{NAME}}', profile.name) + .replace('{{NAME}}', resolveField(profile.nameEn, profile.name)) .replace('{{TITLE}}', resolveField(profile.titleEn, profile.title)) .replace('{{TAGLINE}}', resolveField(profile.taglineEn, profile.tagline)) .replace('{{BIO}}', resolveField(profile.bioEn, profile.bio)) .replace('{{EMAIL}}', profile.email) - .replace('{{GITHUB}}', profile.githubUrl.replace('https://', 'github.com/')) - .replace('{{LINKEDIN}}', profile.linkedinUrl.replace('https://', 'linkedin.com/in/')) + .replace('{{GITHUB}}', profile.githubUrl) + .replace('{{LINKEDIN}}', profile.linkedinUrl) .replace('{{PHOTO_BASE64}}', photoBase64) .replace('{{FONT_FACES}}', fontFaces) .replace('{{UPDATED_DATE}}', updatedDate) diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index 9c35091..7dcce57 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -1,20 +1,14 @@ -import { useLanguage } from '@/hooks/useLanguage' -import { strings } from '@/i18n/strings' -import { Navigation } from './Navigation' -import { BackToTop } from '@/components/ui/BackToTop' -import { Footer } from './Footer' +import {Navigation} from './Navigation' +import {BackToTop} from '@/components/ui/BackToTop' +import {Footer} from './Footer' interface LayoutProps { children?: React.ReactNode } export function Layout({ children }: LayoutProps) { - const { lang } = useLanguage() return ( <> - - {strings.common.skipLink[lang]} -
{children}