This commit is contained in:
@ -142,14 +142,7 @@ function buildResumeFiles(resumeData: ResumeData): { [key: string]: FileSystemNo
|
||||
}
|
||||
|
||||
function buildPostsFiles(postsData: any[]): { [key: string]: FileSystemNode } {
|
||||
const postsFiles: { [key: string]: FileSystemNode } = {
|
||||
'README.txt': {
|
||||
type: 'file',
|
||||
name: 'README.txt',
|
||||
content: 'Blog posts and articles.\n\nUse "open /posts" to see the full list on the website.\n\nAvailable posts:\n' +
|
||||
postsData.map((post: any) => `- ${post.slug}.md`).join('\n')
|
||||
}
|
||||
};
|
||||
const postsFiles: { [key: string]: FileSystemNode } = {};
|
||||
|
||||
postsData.forEach((post: any) => {
|
||||
const fileName = `${post.slug}.md`;
|
||||
@ -173,33 +166,15 @@ ${post.content}`;
|
||||
}
|
||||
|
||||
function buildTalksFiles(): { [key: string]: FileSystemNode } {
|
||||
const talksFiles: { [key: string]: FileSystemNode } = {
|
||||
'README.txt': {
|
||||
type: 'file',
|
||||
name: 'README.txt',
|
||||
content: 'Conference talks and presentations.\n\nUse "open /talks" to see the full list on the website.\n\nAvailable talks:\n' +
|
||||
talks.map(talk => `- ${talk.id}.md`).join('\n')
|
||||
}
|
||||
};
|
||||
const talksFiles: { [key: string]: FileSystemNode } = {};
|
||||
|
||||
talks.forEach(talk => {
|
||||
const fileName = `${talk.id}.md`;
|
||||
let content = `---
|
||||
title: "${talk.name}"
|
||||
description: "${talk.description}"
|
||||
${talk.venue ? `venue: "${talk.venue}"` : ''}
|
||||
${talk.date ? `date: "${talk.date}"` : ''}
|
||||
link: "${talk.link}"
|
||||
---
|
||||
|
||||
# ${talk.name}
|
||||
|
||||
const fileName = `${talk.id}.txt`;
|
||||
let content = `${talk.name}
|
||||
${talk.description}
|
||||
|
||||
${talk.venue ? `**Venue:** ${talk.venue}` : ''}
|
||||
${talk.date ? `**Date:** ${talk.date}` : ''}
|
||||
|
||||
**Download:** [${talk.link}](${talk.link})`;
|
||||
${talk.venue || ''}
|
||||
${talk.date || ''}
|
||||
${talk.link}`;
|
||||
|
||||
talksFiles[fileName] = {
|
||||
type: 'file',
|
||||
@ -212,32 +187,15 @@ ${talk.date ? `**Date:** ${talk.date}` : ''}
|
||||
}
|
||||
|
||||
function buildProjectsFiles(): { [key: string]: FileSystemNode } {
|
||||
const projectsFiles: { [key: string]: FileSystemNode } = {
|
||||
'README.txt': {
|
||||
type: 'file',
|
||||
name: 'README.txt',
|
||||
content: 'Personal and professional projects.\n\nUse "open /projects" to see the full portfolio on the website.\n\nAvailable projects:\n' +
|
||||
projects.map(project => `- ${project.id}.md`).join('\n')
|
||||
}
|
||||
};
|
||||
const projectsFiles: { [key: string]: FileSystemNode } = {};
|
||||
|
||||
projects.forEach(project => {
|
||||
const fileName = `${project.id}.md`;
|
||||
let content = `---
|
||||
title: "${project.name}"
|
||||
description: "${project.description}"
|
||||
${project.status ? `status: "${project.status}"` : ''}
|
||||
${project.link ? `link: "${project.link}"` : ''}
|
||||
${project.technologies ? `technologies: [${project.technologies.map(tech => `"${tech}"`).join(', ')}]` : ''}
|
||||
---
|
||||
|
||||
# ${project.name}
|
||||
|
||||
const fileName = `${project.id}.txt`;
|
||||
let content = `${project.name}
|
||||
${project.description}
|
||||
|
||||
${project.status ? `**Status:** ${project.status}` : ''}
|
||||
${project.technologies ? `**Technologies:** ${project.technologies.join(', ')}` : ''}
|
||||
${project.link ? `**Link:** [${project.link}](${project.link})` : ''}`;
|
||||
${project.status || ''}
|
||||
${project.technologies ? project.technologies.join(', ') : ''}
|
||||
${project.link}`;
|
||||
|
||||
projectsFiles[fileName] = {
|
||||
type: 'file',
|
||||
@ -250,23 +208,12 @@ ${project.link ? `**Link:** [${project.link}](${project.link})` : ''}`;
|
||||
}
|
||||
|
||||
function buildSocialFiles(): { [key: string]: FileSystemNode } {
|
||||
const socialFiles: { [key: string]: FileSystemNode } = {
|
||||
'README.txt': {
|
||||
type: 'file',
|
||||
name: 'README.txt',
|
||||
content: 'Social media profiles and contact information.\n\nAvailable social links:\n' +
|
||||
socialLinks.map(link => `- ${link.id}.txt`).join('\n')
|
||||
}
|
||||
};
|
||||
const socialFiles: { [key: string]: FileSystemNode } = {};
|
||||
|
||||
socialLinks.forEach(link => {
|
||||
const fileName = `${link.id}.txt`;
|
||||
let content = `${link.name}
|
||||
|
||||
${link.ariaLabel}
|
||||
|
||||
URL: ${link.url}
|
||||
Icon: ${link.icon}`;
|
||||
${link.url}`;
|
||||
|
||||
socialFiles[fileName] = {
|
||||
type: 'file',
|
||||
@ -279,23 +226,12 @@ Icon: ${link.icon}`;
|
||||
}
|
||||
|
||||
function buildTechFiles(): { [key: string]: FileSystemNode } {
|
||||
const techFiles: { [key: string]: FileSystemNode } = {
|
||||
'README.txt': {
|
||||
type: 'file',
|
||||
name: 'README.txt',
|
||||
content: 'Technologies and tools I use.\n\nAvailable tech links:\n' +
|
||||
techLinks.map(link => `- ${link.id}.txt`).join('\n')
|
||||
}
|
||||
};
|
||||
const techFiles: { [key: string]: FileSystemNode } = {};
|
||||
|
||||
techLinks.forEach(link => {
|
||||
const fileName = `${link.id}.txt`;
|
||||
let content = `${link.name}
|
||||
|
||||
${link.ariaLabel}
|
||||
|
||||
URL: ${link.url}
|
||||
Icon: ${link.icon}`;
|
||||
${link.url}`;
|
||||
|
||||
techFiles[fileName] = {
|
||||
type: 'file',
|
||||
|
Reference in New Issue
Block a user