Skip to content

bootdotdev/blog

Repository files navigation

The Boot.dev Blog

This is the source code and content for the Boot.dev blog, which can be found at https://blog.boot.dev.

Contributing

We would love for you to add your own article, or make improvements to an existing article! You can read the contributing guide here for how to get started.

License

You can read the license here. In short, you're free to copy and edit this blog. That said, all the content in this repository is owned by Boot.dev, and you're not permitted to host or publish it elsewhere. We want you to be able to submit updates and even entire articles if you choose, but be aware that an accepted submission does not give you any ownership over the content in this project.

Quick start development

Make sure you have npm and the latest version of hugo installed on your local machine.

npm install
npm run serve

Check for broken links

In one terminal start the server on localhost:1313

npm run serve

Then run the check in another terminal:

go run ./scripts/linkcheck

It will print any issues.

Resize images

Place original images go in the raw/ directory.

Create a directory static/img/X where X is the max width of the new images.

npm image-min

This resizes all the images and places them in the new folder and deletes them from raw/.

The syntax to include them in a post is:

![alt text here](/img/800/technology.png.webp)