This is the source for pedrolamas.com.
It's built on top of Astro and currently hosted on Netlify!
Requirements: Node.js 26 (see .nvmrc) and pnpm (the version is pinned in package.json, so corepack enable will pick it up).
git clone --recurse-submodules https://github.com/pedrolamas/pedrolamas.com.git
cd pedrolamas.com
pnpm install
pnpm devIf you already cloned without submodules, run git submodule update --init to fetch the images and downloads in src/content/assets/wp-content.
Other useful scripts:
pnpm build: builds the static site intodist/pnpm preview: serves the built site locallypnpm lint/pnpm format: checks / fixes code style (ESLint and Prettier)pnpm check: type-checks the project (astro check)
- Posts live in
src/content/posts(namedYYYY-MM-DD-slug.md, published at/YYYY/MM/DD/slug/) and pages insrc/content/pages. - Reference images (in markdown and the frontmatter
image:) as/wp-content/.... At build time these are mapped to the files in thesrc/content/assets/wp-contentsubmodule and optimized, except animated GIFs, which are served as they are. - The
src/content/assets/wp-contentsubmodule is also served as-is at/wp-content/, both bypnpm devand in the build output, for downloads and full-size image links.
Netlify builds the site with pnpm build and publishes dist/ (see netlify.toml). The "Edit" link on each post uses the REPOSITORY_URL and BRANCH variables that Netlify sets automatically; it is hidden when they're missing, such as in local builds.
The following directories and their contents are Copyright Pedro Lamas. You may not reuse anything therein without my permission:
- /src/content
All other directories and files are MIT Licensed. Feel free to use any of it as you please.