mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
fixed name in resume pdf
This commit is contained in:
1 parent
67255173f8
commit
71bf3fe090
2 files changed
+6
-12
No files matched your search
@@ -139,13 +139,13 @@ function renderProjects(projs: typeof projects): string {
|
|||||||
|
|
||||||
// --- Assemble HTML ---
|
// --- Assemble HTML ---
|
||||||
const html = template
|
const html = template
|
||||||
.replace('{{NAME}}', profile.name)
|
.replace('{{NAME}}', resolveField(profile.nameEn, profile.name))
|
||||||
.replace('{{TITLE}}', resolveField(profile.titleEn, profile.title))
|
.replace('{{TITLE}}', resolveField(profile.titleEn, profile.title))
|
||||||
.replace('{{TAGLINE}}', resolveField(profile.taglineEn, profile.tagline))
|
.replace('{{TAGLINE}}', resolveField(profile.taglineEn, profile.tagline))
|
||||||
.replace('{{BIO}}', resolveField(profile.bioEn, profile.bio))
|
.replace('{{BIO}}', resolveField(profile.bioEn, profile.bio))
|
||||||
.replace('{{EMAIL}}', profile.email)
|
.replace('{{EMAIL}}', profile.email)
|
||||||
.replace('{{GITHUB}}', profile.githubUrl.replace('https://', 'github.com/'))
|
.replace('{{GITHUB}}', profile.githubUrl)
|
||||||
.replace('{{LINKEDIN}}', profile.linkedinUrl.replace('https://', 'linkedin.com/in/'))
|
.replace('{{LINKEDIN}}', profile.linkedinUrl)
|
||||||
.replace('{{PHOTO_BASE64}}', photoBase64)
|
.replace('{{PHOTO_BASE64}}', photoBase64)
|
||||||
.replace('{{FONT_FACES}}', fontFaces)
|
.replace('{{FONT_FACES}}', fontFaces)
|
||||||
.replace('{{UPDATED_DATE}}', updatedDate)
|
.replace('{{UPDATED_DATE}}', updatedDate)
|
||||||
|
|||||||
@@ -1,20 +1,14 @@
|
|||||||
import { useLanguage } from '@/hooks/useLanguage'
|
import {Navigation} from './Navigation'
|
||||||
import { strings } from '@/i18n/strings'
|
import {BackToTop} from '@/components/ui/BackToTop'
|
||||||
import { Navigation } from './Navigation'
|
import {Footer} from './Footer'
|
||||||
import { BackToTop } from '@/components/ui/BackToTop'
|
|
||||||
import { Footer } from './Footer'
|
|
||||||
|
|
||||||
interface LayoutProps {
|
interface LayoutProps {
|
||||||
children?: React.ReactNode
|
children?: React.ReactNode
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Layout({ children }: LayoutProps) {
|
export function Layout({ children }: LayoutProps) {
|
||||||
const { lang } = useLanguage()
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<a href="#main-content" className="skip-link">
|
|
||||||
{strings.common.skipLink[lang]}
|
|
||||||
</a>
|
|
||||||
<Navigation />
|
<Navigation />
|
||||||
<main id="main-content" style={{ flex: 1 }}>
|
<main id="main-content" style={{ flex: 1 }}>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
Reference in new issue
Block a user