Skip to content

About

✒️ Personal blog of Pedro Lamas

Topics

Resources

Code of conduct

Security policy

Stars

7 stars

Watchers

1 watching

Forks

Repository files navigation

pedrolamas.com

Build Status Netlify status Astro version License Twitter Follow

This is the source for pedrolamas.com.

It's built on top of Astro and currently hosted on Netlify!

Development

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 dev

If 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 into dist/
  • pnpm preview: serves the built site locally
  • pnpm lint / pnpm format: checks / fixes code style (ESLint and Prettier)
  • pnpm check: type-checks the project (astro check)

Content

  • Posts live in src/content/posts (named YYYY-MM-DD-slug.md, published at /YYYY/MM/DD/slug/) and pages in src/content/pages.
  • Reference images (in markdown and the frontmatter image:) as /wp-content/.... At build time these are mapped to the files in the src/content/assets/wp-content submodule and optimized, except animated GIFs, which are served as they are.
  • The src/content/assets/wp-content submodule is also served as-is at /wp-content/, both by pnpm dev and in the build output, for downloads and full-size image links.

Deployment

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.

License

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.

About

✒️ Personal blog of Pedro Lamas

Topics

Resources

Code of conduct

Security policy

Stars

7 stars

Watchers

1 watching

Forks

Sponsor this project

Used by

Contributors

Languages