devfolio-page 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -177,6 +177,8 @@ async function generateHomepage(portfolio, themePath, outputDir, theme) {
177
177
  hasProjects: (portfolio.projects?.length ?? 0) > 0,
178
178
  hasExperiments: (portfolio.experiments?.length ?? 0) > 0,
179
179
  hasWriting: (portfolio.sections.writing?.length ?? 0) > 0,
180
+ // Navigation links
181
+ nav_links: generateNavLinks(portfolio, false, 'home'),
180
182
  };
181
183
  const html = Mustache.render(template, data);
182
184
  await fs.writeFile(path.join(outputDir, 'index.html'), html);
@@ -770,6 +772,7 @@ async function generateHomepageInMemory(portfolio, themePath, theme, files) {
770
772
  hasProjects: (portfolio.projects?.length ?? 0) > 0,
771
773
  hasExperiments: (portfolio.experiments?.length ?? 0) > 0,
772
774
  hasWriting: (portfolio.sections.writing?.length ?? 0) > 0,
775
+ nav_links: generateNavLinks(portfolio, false, 'home'),
773
776
  };
774
777
  const html = Mustache.render(template, data);
775
778
  files.set('index.html', Buffer.from(html, 'utf-8'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devfolio-page",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Your portfolio as code. Version control it like software.",
5
5
  "type": "module",
6
6
  "bin": {