Skip to content

bernardodiasc/bernardodiasc.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

139 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bernardodiasc.github.io

Personal blog and portfolio built with Astro.

Live site: https://bernardodiasdacruz.com

Requirements

Node.js v22 (use nvm to manage Node versions)

Getting started

yarn install

Scripts

  • Development: yarn dev — starts the dev server at http://localhost:4321/
  • Build: yarn build — generates static files in dist/
  • Preview: yarn preview — serves the production build locally
  • Deploy: yarn deploy — publishes dist/ to GitHub Pages via gh-pages

Draft mode

Posts with draft: true in their frontmatter are hidden from all listings by default.

To preview drafts:

  • Local dev: drafts are always visible on localhost — just run yarn dev
  • Production: add ?draft to any URL (e.g. https://bernardodiasdacruz.com/?draft)

Draft post pages are always built and accessible by direct URL. The ?draft flag only controls whether they appear in listings.

To publish a draft, remove the flag or set it to false:

---
draft: true   # hidden from listings unless ?draft
draft: false  # always visible (default when omitted)
---

Tech stack

  • Astro 5 with MDX support
  • Sitemap generation (@astrojs/sitemap)
  • Auto-imported components (astro-auto-import)
  • D3.js for data visualizations
  • Multi-language content (EN / PT)

About

Personal custom made website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors